Sha256: 1316db81f49f166d18d4112cc3cce277a1ee2621996c1f863ce5554cfa1dff2c
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
module Sinatra module Bundles # View helpers module Helpers # Emit a script tag for a javascript bundle # # @param [Symbol,String] bundle The bundle name # @return [String] HTML script tag def javascript_bundle_include_tag(bundle) options.javascript_bundles[bundle].to_html(bundle) end # Emit a script tag for a stylesheet bundle # # @param [Symbol,String] bundle The bundle name # @return [String] HTML link tag def stylesheet_bundle_link_tag(bundle) options.stylesheet_bundles[bundle].to_html(bundle) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-bundles-0.1.3 | lib/sinatra/bundles/helpers.rb |