Class: Deface::HamlConverter

Inherits:
Haml::Engine
  • Object
show all
Includes:
HamlCompilerMethods, HamlParserMethods
Defined in:
lib/deface/haml_converter.rb

Defined Under Namespace

Classes: Compiler, Parser

Instance Method Summary collapse

Methods included from HamlCompilerMethods

#push_script, #push_silent

Methods included from HamlParserMethods

#parse_new_attributes, #parse_old_attributes

Constructor Details

#initialize(template, options = {}) ⇒ HamlConverter

Returns a new instance of HamlConverter.



91
92
93
94
95
# File 'lib/deface/haml_converter.rb', line 91

def initialize(template, options = {})
  options[:compiler_class] = Compiler
  options[:parser_class]   = Parser
  super(template, options)
end

Instance Method Details

#resultObject



101
102
103
# File 'lib/deface/haml_converter.rb', line 101

def result
  Deface::Parser.undo_erb_markup! String.new(render)
end