You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -90,20 +90,18 @@ function findPathByNamespace(tag, [namespace, fileNameFromTag], options) {
90
90
}catch{
91
91
// With disabled strict mode we will never enter here as findPathByRoot() return false
92
92
// so we don't need to check if options.strict is true
93
-
thrownewError(`[custom-tag] For the tag ${tag} was not found the template in the defined namespace's root ${customTagNamespace.root} nor in any defined custom tag roots.`);
93
+
thrownewError(`[components] For the tag ${tag} was not found the template in the defined namespace's root ${customTagNamespace.root} nor in any defined custom tag roots.`);
94
94
}
95
95
}elseif(options.strict){
96
-
thrownewError(`[custom-tag] For the tag ${tag} was not found the template in the defined namespace's path ${customTagNamespace.root}.`);
96
+
thrownewError(`[components] For the tag ${tag} was not found the template in the defined namespace's path ${customTagNamespace.root}.`);
97
97
}else{
98
98
returnfalse;
99
99
}
100
100
}
101
101
102
-
// Return dirname + filename
103
-
returncustomTagNamespace.root
104
-
.replace(options.root,'')
105
-
.replace(options.absolute ? '' : path.sep,'')
106
-
.concat(path.sep,fileNameFromTag);
102
+
// Set root to namespace root
103
+
options.root=customTagNamespace.root;
104
+
returnfileNameFromTag;
107
105
}
108
106
109
107
/**
@@ -115,20 +113,20 @@ function findPathByNamespace(tag, [namespace, fileNameFromTag], options) {
115
113
* @return {String|boolean} [custom tag root where the module is found]
<html><head><title>Base Dark Layout</title></head><body><main><slotname="content"></slot></main><footer><slotname="footer">footer content</slot></footer></body></html>
<html><head><title>{{ title }}</title></head><body><main><slotname="content"></slot></main><footer><slotname="footer">footer content</slot></footer></body></html>
0 commit comments