creating method javascript_include_tag like as rails

This commit is contained in:
Lucas Souza 2011-06-18 16:31:17 -03:00
parent 6051157ac0
commit 9e7eea0fc2
3 changed files with 7 additions and 1 deletions

2
Gemfile Normal file
View File

@ -0,0 +1,2 @@
gem "emk-sinatra-url-for"

View File

@ -23,6 +23,10 @@ module Sinatra
list.collect { |source| stylesheet_tag(source, options) }.join("\n")
end
def javascript_include_tag(*sources)
javascript_script_tag *sources
end
def javascript_script_tag(*sources)
list, options = extract_options(sources)
list.collect { |source| javascript_tag(source, options) }.join("\n")

View File

@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{sinatra-static-assets}
s.version = "0.5.1"
s.version = "0.5.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Wlodek Bzyl"]