Module: Roda::RodaPlugins::DryView::RequestMethods

Defined in:
lib/roda/plugins/dry_view.rb

Instance Method Summary collapse

Instance Method Details

#view(name, options = {}) ⇒ Object



25
26
27
28
29
# File 'lib/roda/plugins/dry_view.rb', line 25

def view(name, options = {})
  resolve(scope.view_key(name)) do |renderer|
    renderer.call({ context: scope.view_context }.merge(options)).to_s
  end
end