summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-10-01 21:19:49 -0500
committerkpdecker <kpdecker@gmail.com>2013-10-01 21:19:49 -0500
commite676e43dc5e22dfb3847ff28321b29863975cc21 (patch)
tree7ebebcea40fe565fad3b7e6a3896c85252f67123 /lib/handlebars/compiler/compiler.js
parente75839b18596176f7e433cb94365eda32d7c453a (diff)
downloadhandlebars.js-e676e43dc5e22dfb3847ff28321b29863975cc21.zip
handlebars.js-e676e43dc5e22dfb3847ff28321b29863975cc21.tar.gz
handlebars.js-e676e43dc5e22dfb3847ff28321b29863975cc21.tar.bz2
Use proper default vs. module import semantics
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js12
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);
};
-};
+}