summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/ast.js
diff options
context:
space:
mode:
authorTommy Messbauer <tommy@vast.com>2012-08-29 12:48:22 -0500
committerTommy Messbauer <tommy@vast.com>2012-08-29 12:48:22 -0500
commit7c4813b417eaf4b9aab597dcd618857b8419f301 (patch)
treee20b27e87e710f0b988f5d8cc631859677449494 /lib/handlebars/compiler/ast.js
parent89f5ab8aaf8c6017d4a78b2bce719be0d99f82bd (diff)
downloadhandlebars.js-7c4813b417eaf4b9aab597dcd618857b8419f301.zip
handlebars.js-7c4813b417eaf4b9aab597dcd618857b8419f301.tar.gz
handlebars.js-7c4813b417eaf4b9aab597dcd618857b8419f301.tar.bz2
Commiting initial factory code
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r--lib/handlebars/compiler/ast.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js
index 25abe0a..d6f5ee0 100644
--- a/lib/handlebars/compiler/ast.js
+++ b/lib/handlebars/compiler/ast.js
@@ -1,7 +1,6 @@
-var Handlebars = require('./base');
// BEGIN(BROWSER)
-(function() {
+exports.attach = function(Handlebars) {
Handlebars.AST = {};
@@ -118,6 +117,8 @@ var Handlebars = require('./base');
this.comment = comment;
};
-})();
+ return Handlebars;
+};
+
// END(BROWSER)