Module: Roda::RodaPlugins::Assets::RequestMethods
- Defined in:
- lib/roda/plugins/assets.rb
Instance Method Summary collapse
-
#assets ⇒ Object
Render the matching asset if this is a GET request for a supported asset.
Instance Method Details
#assets ⇒ Object
Render the matching asset if this is a GET request for a supported asset.
700 701 702 703 704 705 706 707 708 709 |
# File 'lib/roda/plugins/assets.rb', line 700 def assets if is_get? self.class.assets_matchers.each do |type, matcher| is matcher do |file| scope.render_asset(file, type) end end nil end end |