Class: HamlJsxTemplate

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/hamljsx.rb

Instance Method Summary collapse

Instance Method Details

#evaluate(context, locals, &block) ⇒ Object



11
12
13
# File 'lib/hamljsx.rb', line 11

def evaluate(context, locals, &block)
  HamlJsxEngine.evaluate(@data)
end

#prepareObject



7
8
9
# File 'lib/hamljsx.rb', line 7

def prepare
  Haml::Options.defaults[:format] = :xhtml
end