Module: Middleman::Renderers::Haml

Defined in:
lib/middleman-core/renderers/haml.rb

Overview

Haml Renderer

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object Also known as: included

Once registered



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/middleman-core/renderers/haml.rb', line 13

def registered(app)
  app.before_configuration do
    template_extensions :haml => :html
  end

  # Add haml helpers to context
  app.send :include, ::Haml::Helpers

  # Setup haml helper paths
  app.ready do
    init_haml_helpers
  end
end