Module: Haml2Handlebars

Defined in:
lib/haml2handlebars.rb,
lib/haml2handlebars/engine.rb,
lib/haml2handlebars/version.rb,
lib/haml2handlebars/attributes_parser.rb

Defined Under Namespace

Classes: AttributesParser, Engine

Constant Summary collapse

VERSION =
'0.0.2'

Class Method Summary collapse

Class Method Details

.convert(template, options = {}) ⇒ Object



5
6
7
# File 'lib/haml2handlebars.rb', line 5

def self.convert template, options = {}
  Engine.new(template, {:format => :html5}.merge(options)).to_handlebars
end