Test the parser, and clean up ID having multiple parts

This commit is contained in:
wycats
2010-11-25 23:32:03 -08:00
parent f8b245896d
commit b401fc388b
4 changed files with 177 additions and 5 deletions
+2 -2
View File
@@ -79,8 +79,8 @@ Handlebars.PrintVisitor.prototype.STRING = function(string) {
};
Handlebars.PrintVisitor.prototype.ID = function(id) {
var path = id.id.join("/");
if(id.id.length > 1) {
var path = id.parts.join("/");
if(id.parts.length > 1) {
return "PATH:" + path;
} else {
return "ID:" + path;