@webmate-studio/builder 0.2.183 → 0.2.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -40,6 +40,10 @@ class TemplateEvaluator {
|
|
|
40
40
|
case 'Fragment':
|
|
41
41
|
return this.evalFragment(node, ctx);
|
|
42
42
|
case 'Text':
|
|
43
|
+
// Strip closing tags of built-in micro-components (only if present)
|
|
44
|
+
if (node.value.includes('</wm-')) {
|
|
45
|
+
return node.value.replace(/<\/wm-button>/g, '');
|
|
46
|
+
}
|
|
43
47
|
return node.value;
|
|
44
48
|
case 'Expression':
|
|
45
49
|
return this.evalExpression(node, ctx);
|
|
@@ -194,10 +198,10 @@ class TemplateEvaluator {
|
|
|
194
198
|
return this.evalIslandTag(node, ctx);
|
|
195
199
|
}
|
|
196
200
|
|
|
197
|
-
// Built-in micro-components
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
+
// Built-in micro-components
|
|
202
|
+
if (node.tagName === 'wm-button') {
|
|
203
|
+
return this.evalWmButton(node, ctx);
|
|
204
|
+
}
|
|
201
205
|
|
|
202
206
|
let result = `<${node.tagName}`;
|
|
203
207
|
|