7 # Renders raw haml in within the events context.
9 # This can be use to if you already have the template on hand and don't
10 # need a layout. This is speedier than using haml
12 def render_haml(template, &block)
14 body ::Haml::Engine.new(template).render(self, &block)
17 # Renders Haml within an event.
22 # haml '== The time is #{Time.now}'
28 # haml :foo #=> reads and renders view/foo.haml
31 # For options, see Sinatra::Renderer
33 # See also: Sinatra::Renderer
34 def haml(template, options = {}, &layout)
35 render(template, :haml, options, &layout)