Module: Roda::RodaPlugins::Assets::RequestClassMethods

Defined in:
lib/roda/plugins/assets.rb

Instance Method Summary collapse

Instance Method Details

#assets_matchersObject

An array of asset type strings and regexps for that type, for all asset types handled.



681
682
683
684
685
# File 'lib/roda/plugins/assets.rb', line 681

def assets_matchers
  @assets_matchers ||= [:css, :js].map do |t|
    [t.to_s.freeze, assets_regexp(t)].freeze if roda_class.assets_opts[t]
  end.compact.freeze
end