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
959 def assets
960   if is_get?
961     self.class.assets_matchers.each do |type, matcher|
962       is matcher do |file|
963         scope.render_asset(file, type)
964       end
965     end
966     nil
967   end
968 end