Class: HoganAssets::Hogan

Inherits:
Object
  • Object
show all
Defined in:
lib/hogan_assets/hogan.rb

Class Method Summary collapse

Class Method Details

.compile(source, options = {}) ⇒ Object



8
9
10
# File 'lib/hogan_assets/hogan.rb', line 8

def compile(source, options = {})
  context.eval("Hogan.compile(#{source.inspect}, {asString: true})")
end