summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/visitor.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2011-07-30 10:28:31 -0500
committerkpdecker <kpdecker@gmail.com>2011-07-30 10:28:31 -0500
commit8c49721c704013656e96a53903d3302e52b0e5e3 (patch)
treec3da76efe6af277df66985e3a616d29015c327f9 /lib/handlebars/compiler/visitor.js
parent2fc01ff73a1f53d634f03ac031112b58697e40a5 (diff)
downloadhandlebars.js-8c49721c704013656e96a53903d3302e52b0e5e3.zip
handlebars.js-8c49721c704013656e96a53903d3302e52b0e5e3.tar.gz
handlebars.js-8c49721c704013656e96a53903d3302e52b0e5e3.tar.bz2
Move visitor into compiler subdir
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)
+