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.



836
837
838
839
840
841
842
# File 'lib/roda/plugins/assets.rb', line 836

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