diff options
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index c020e1f..0691a23 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -1,12 +1,10 @@ import Exception from "../exception"; import { template } from "../runtime"; import { parse } from "./base"; -import { JavaScriptCompiler } from "./javascript-compiler"; -import AST from "./ast"; +import JavaScriptCompiler from "./javascript-compiler"; +module AST from "./ast"; -/*jshint eqnull:true*/ - -export function Compiler() {}; +export function Compiler() {} // the foundHelper register will disambiguate helper lookup from finding a // function in a context. This is necessary for mustache compatibility, which @@ -428,7 +426,7 @@ export function precompile(input, options) { var ast = parse(input); var environment = new Compiler().compile(ast, options); return new JavaScriptCompiler().compile(environment, options); -}; +} export function compile(input, options) { if (input == null || (typeof input !== 'string' && input.constructor !== AST.ProgramNode)) { @@ -457,4 +455,4 @@ export function compile(input, options) { } return compiled.call(this, context, options); }; -}; +} |