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.



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

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