module Roda::RodaPlugins::SymbolViews::RequestMethods

Private Instance Methods

block_result_body(result) click to toggle source

If the block result is a symbol, consider the symbol a template name and use the template view as the body.

Calls superclass method
# File lib/roda/plugins/symbol_views.rb, line 28
def block_result_body(result)
  if result.is_a?(Symbol)
    scope.view(result)
  else
    super
  end
end