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
874 def assets
875   if is_get?
876     self.class.assets_matchers.each do |type, matcher|
877       is matcher do |file|
878         scope.render_asset(file, type)
879       end
880     end
881     nil
882   end
883 end