summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/compiler')
-rw-r--r--lib/handlebars/compiler/printer.js2
-rw-r--r--lib/handlebars/compiler/visitor.js13
2 files changed, 14 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/printer.js b/lib/handlebars/compiler/printer.js
index 7be3f98..1866830 100644
--- a/lib/handlebars/compiler/printer.js
+++ b/lib/handlebars/compiler/printer.js
@@ -1,5 +1,5 @@
var Handlebars = require("handlebars");
-require("handlebars/visitor");
+require("./visitor");
// BEGIN(BROWSER)
Handlebars.PrintVisitor = function() { this.padding = 0; };
diff --git a/lib/handlebars/compiler/visitor.js b/lib/handlebars/compiler/visitor.js
new file mode 100644
index 0000000..a713bcc
--- /dev/null
+++ b/lib/handlebars/compiler/visitor.js
@@ -0,0 +1,13 @@
+var Handlebars = require("handlebars");
+
+// BEGIN(BROWSER)
+
+Handlebars.Visitor = function() {};
+
+Handlebars.Visitor.prototype = {
+ accept: function(object) {
+ return this[object.type](object);
+ }
+};
+// END(BROWSER)
+