mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fixes #48 name in marko-tag.json should override default name given during discovery
This commit is contained in:
parent
5a918e85d0
commit
7ebae61a1d
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user