Module: Roda::RodaPlugins::DryView::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#view_contextObject



11
12
13
# File 'lib/roda/plugins/dry_view.rb', line 11

def view_context
  self.class["view_context"].with(view_context_options)
end

#view_context_optionsObject



15
16
17
# File 'lib/roda/plugins/dry_view.rb', line 15

def view_context_options
  {}
end

#view_key(name) ⇒ Object



19
20
21
# File 'lib/roda/plugins/dry_view.rb', line 19

def view_key(name)
  "views.#{name}"
end