diff options
author | Yehuda Katz <wycats@gmail.com> | 2013-07-16 19:10:37 +0000 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2013-07-16 19:10:37 +0000 |
commit | da130f7745fc338d7ea31c60d9954ab6e0e1511a (patch) | |
tree | 0f6d2560cab472cb896bd444093f610dc328d617 /lib | |
parent | 12f8299eb25e605d825f96f50599fc3851c9d8ec (diff) | |
download | handlebars.js-da130f7745fc338d7ea31c60d9954ab6e0e1511a.zip handlebars.js-da130f7745fc338d7ea31c60d9954ab6e0e1511a.tar.gz handlebars.js-da130f7745fc338d7ea31c60d9954ab6e0e1511a.tar.bz2 |
Building an AMD file
Diffstat (limited to 'lib')
-rw-r--r-- | lib/handlebars/base.js | 2 | ||||
-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 |
5 files changed, 5 insertions, 7 deletions
diff --git a/lib/handlebars/base.js b/lib/handlebars/base.js index 9849678..875fe03 100644 --- a/lib/handlebars/base.js +++ b/lib/handlebars/base.js @@ -15,7 +15,7 @@ export REVISION_CHANGES = { }; // TODO: Make this a class -export default function(helpers, partials) { +export function base(helpers, partials) { var exports = {}; 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); }; |