class HoganCompiler

Not so sure on this one…

Public Instance Methods

compile(path) click to toggle source

A compile method which takes a file path, and returns a compiled string

# File lib/gumdrop/support/stitch.rb, line 80
def compile(path)
  content = File.read(path)
  %{
    var template = Hogan.compile(#{content.to_json});
    module.exports = (function(data){ return template.render(data); });
  }
end