diff options
Diffstat (limited to 'lib/handlebars/compiler')
-rw-r--r-- | lib/handlebars/compiler/base.js | 2 | ||||
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 3 | ||||
-rw-r--r-- | lib/handlebars/compiler/javascript-compiler.js | 3 | ||||
-rw-r--r-- | lib/handlebars/compiler/printer.js | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/lib/handlebars/compiler/base.js b/lib/handlebars/compiler/base.js index 525cd5b..8dd464d 100644 --- a/lib/handlebars/compiler/base.js +++ b/lib/handlebars/compiler/base.js @@ -3,7 +3,7 @@ module AST from "handlebars/compiler/ast": export Parser = parser; -export function(input) { +export function parse(input) { // Just return if an already-compile AST was passed in. if(input.constructor === AST.ProgramNode) { return input; } diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index a21ccc0..6e051b7 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -4,8 +4,7 @@ import { template } from "handlebars/runtime"; /*jshint eqnull:true*/ -var Compiler = function() {}; -export default 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 diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js index 49660ff..f5d70ee 100644 --- a/lib/handlebars/compiler/javascript-compiler.js +++ b/lib/handlebars/compiler/javascript-compiler.js @@ -5,8 +5,7 @@ function Literal(value) { }; -function JavaScriptCompiler() {}; -export default JavaScriptCompiler; +export function JavaScriptCompiler() {}; JavaScriptCompiler.prototype = { // PUBLIC API: You can override these methods in a subclass to provide diff --git a/lib/handlebars/compiler/printer.js b/lib/handlebars/compiler/printer.js index 6b72c25..c6e08bb 100644 --- a/lib/handlebars/compiler/printer.js +++ b/lib/handlebars/compiler/printer.js @@ -1,6 +1,6 @@ import Visitor from "handlebars/compiler/visitor"; -export print = function(ast) { +export function print(ast) { return new PrintVisitor().accept(ast); }; |