Class: Jade::HtmlCompiler

Inherits:
Compiler
  • Object
show all
Defined in:
lib/guard/mirror/jade/html_compiler.rb

Instance Method Summary collapse

Instance Method Details

#compile(template) ⇒ Object



3
4
5
# File 'lib/guard/mirror/jade/html_compiler.rb', line 3

def compile(template)
  context.eval("jade.compile(#{template.to_json}, #{@options.to_json})()")
end