summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/compiler/index.js')
-rw-r--r--lib/handlebars/compiler/index.js19
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/handlebars/compiler/index.js b/lib/handlebars/compiler/index.js
index e62c768..6ed8d21 100644
--- a/lib/handlebars/compiler/index.js
+++ b/lib/handlebars/compiler/index.js
@@ -1,7 +1,16 @@
// Each of these module will augment the Handlebars object as it loads. No need to perform addition operations
-module.exports = require("./base");
-require("./visitor");
-require("./printer");
+module.exports.attach = function(Handlebars) {
-require("./ast");
-require("./compiler");
+var visitor = require("./visitor"),
+ printer = require("./printer"),
+ ast = require("./ast"),
+ compiler = require("./compiler");
+
+visitor.attach(Handlebars);
+printer.attach(Handlebars);
+ast.attach(Handlebars);
+compiler.attach(Handlebars);
+
+return Handlebars;
+
+};