Method: Peictt::Controller#render_html

Defined in:
lib/peictt/controller.rb

#render_html(template) ⇒ Object



74
75
76
77
78
# File 'lib/peictt/controller.rb', line 74

def render_html(template)
  self.class.layout.render(self, template.locals) do
    Tilt::HamlTemplate.new(template.body).render(self, template.locals)
  end
end