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
887 def assets
888   if is_get?
889     self.class.assets_matchers.each do |type, matcher|
890       is matcher do |file|
891         scope.render_asset(file, type)
892       end
893     end
894     nil
895   end
896 end