Sha256: b1881b419214a103df4b3e61f6837e281c26788186e13552fe196cd401a369c8
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 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, media = nil) options.stylesheet_bundles[bundle].to_html(bundle, media) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-bundles-0.2.0 | lib/sinatra/bundles/helpers.rb |