Class: Manuscript::PageTemplate

Inherits:
Template
  • Object
show all
Defined in:
lib/manuscript/page_template.rb

Instance Method Summary collapse

Methods inherited from Template

#layout?

Instance Method Details

#render(options) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/manuscript/page_template.rb', line 5

def render(options)
  if layout
    layout.render({ 'current_user' => options['current_user'], 'contents' => super(options) })
  else
    super(options)
  end
end