Module: EndView::Methods

Defined in:
lib/end_view.rb

Instance Method Summary collapse

Instance Method Details

#render(*args, &b) ⇒ Object



68
69
70
71
72
# File 'lib/end_view.rb', line 68

def render(*args, &b)
  rendered_template = template.render(self, *args, &b)
  layout = retrieve_layout
  layout ? layout.render { rendered_template } : rendered_template
end