MCPcopy
hub / github.com/handlebars-lang/handlebars.js / compile

Function compile

spec/compiler.js:7–10  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

5
6 describe('#equals', function() {
7 function compile(string) {
8 var ast = Handlebars.parse(string);
9 return new Handlebars.Compiler().compile(ast, {});
10 }
11
12 it('should treat as equal', function() {
13 equal(compile('foo').equals(compile('foo')), true);

Callers 2

compiler.jsFile · 0.70
common.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected