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.



768
769
770
771
772
# File 'lib/roda/plugins/assets.rb', line 768

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