lib/jammit/helper.rb in jammit-0.6.6 vs lib/jammit/helper.rb in jammit-0.7.0
- old
+ new
@@ -24,13 +24,14 @@
# Writes out the URL to the bundled and compressed javascript package,
# except in development, where it references the individual scripts.
def include_javascripts(*packages)
options = packages.extract_options!
+ options.merge!(:extname=>false)
html_safe packages.map {|pack|
should_package? ? Jammit.asset_url(pack, :js) : Jammit.packager.individual_urls(pack.to_sym, :js)
}.flatten.map {|pack|
- javascript_include_tag pack, options
+ "<script src=\"#{pack}\"></script>"
}.join("\n")
end
# Writes out the URL to the concatenated and compiled JST file -- we always
# have to pre-process it, even in development.