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")
|
||||
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")
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user