summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/visitor.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/compiler/visitor.js')
-rw-r--r--lib/handlebars/compiler/visitor.js13
1 files changed, 13 insertions, 0 deletions
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)
+