Add support for passing String parameters to helper

This commit is contained in:
tomhuda
2011-03-30 23:12:45 -07:00
parent 2615fa4bd1
commit 9333d1210d
3 changed files with 134 additions and 31 deletions
+2 -1
View File
@@ -60,7 +60,7 @@ var Handlebars = require("handlebars");
Handlebars.AST.IdNode = function(parts) {
this.type = "ID";
this.original = parts.join("/");
this.original = parts.join(".");
var dig = [], depth = 0;
@@ -73,6 +73,7 @@ var Handlebars = require("handlebars");
}
this.parts = dig;
this.string = dig.join('.');
this.depth = depth;
this.isSimple = (dig.length === 1) && (depth === 0);
};