Test the parser, and clean up ID having multiple parts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user