Add support for INTEGER expressions

This commit is contained in:
tomhuda
2011-06-01 22:33:48 -07:00
parent 4eeda34ad2
commit 0f78345d0c
8 changed files with 71 additions and 30 deletions
+4
View File
@@ -109,6 +109,10 @@ Handlebars.PrintVisitor.prototype.STRING = function(string) {
return '"' + string.string + '"';
};
Handlebars.PrintVisitor.prototype.INTEGER = function(integer) {
return "INTEGER{" + integer.integer + "}";
}
Handlebars.PrintVisitor.prototype.ID = function(id) {
var path = id.parts.join("/");
if(id.parts.length > 1) {