creating method javascript_include_tag like as rails
This commit is contained in:
parent
6051157ac0
commit
9e7eea0fc2
|
@ -23,6 +23,10 @@ module Sinatra
|
||||||
list.collect { |source| stylesheet_tag(source, options) }.join("\n")
|
list.collect { |source| stylesheet_tag(source, options) }.join("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def javascript_include_tag(*sources)
|
||||||
|
javascript_script_tag *sources
|
||||||
|
end
|
||||||
|
|
||||||
def javascript_script_tag(*sources)
|
def javascript_script_tag(*sources)
|
||||||
list, options = extract_options(sources)
|
list, options = extract_options(sources)
|
||||||
list.collect { |source| javascript_tag(source, options) }.join("\n")
|
list.collect { |source| javascript_tag(source, options) }.join("\n")
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = %q{sinatra-static-assets}
|
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.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||||
s.authors = ["Wlodek Bzyl"]
|
s.authors = ["Wlodek Bzyl"]
|
||||||
|
|
Loading…
Reference in New Issue