module Roda::RodaPlugins::Assets::RequestMethods

  1. lib/roda/plugins/assets.rb

Methods

Public Instance

  1. assets

Public Instance methods

assets()

Render the matching asset if this is a GET request for a supported asset.

[show source]
    # File lib/roda/plugins/assets.rb
928 def assets
929   if is_get?
930     self.class.assets_matchers.each do |type, matcher|
931       is matcher do |file|
932         scope.render_asset(file, type)
933       end
934     end
935     nil
936   end
937 end