Fixes #48 name in marko-tag.json should override default name given during discovery

This commit is contained in:
Phillip Gates-Idem 2015-03-17 14:37:04 -04:00
parent 5a918e85d0
commit 7ebae61a1d

View File

@ -339,7 +339,7 @@ function scanTagsDir(tagsConfigPath, tagsConfigDirname, dir, taglib) {
}
tag = buildTag(tagDef, tagsConfigPath, taglib, tagDirname);
tag.name = tagName;
tag.name = tag.name || tagName;
taglib.addTag(tag);
} else {
// marko-tag.json does *not* exist... checking for a 'renderer.js'