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.



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

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

Instance Method Details

#resultObject



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

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