Module: SinatraHelpers::Sprockets::Erb
- Defined in:
- lib/sinatra_helpers/sprockets/erb.rb
Instance Method Summary collapse
Instance Method Details
#sprockets_include_tag(*args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/sinatra_helpers/sprockets/erb.rb', line 9 def sprockets_include_tag(*args) the_args = args.flatten srcs, = if the_args.last && the_args.last.kind_of?(::Hash) [the_args[0..-2], the_args.last] else [the_args, {}] end [:environment] ||= SinatraHelpers::Less.app.environment.to_s javascript_include_tag srcs, end |