Method: Pekky::Context#view
- Defined in:
- lib/pekky/context.rb
#view ⇒ Object
A helper for injecting views into layouts. This method should be called at least once inside a layout. If you try calling it inside a view it will output a warning.
68 69 70 71 72 73 74 |
# File 'lib/pekky/context.rb', line 68 def view if @is_layout @view_output else tag('p', "You can't call #view within a view! This will break things. Tsk.") end end |