bobe 0.0.66 → 0.0.67

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/dist/bobe.cjs.js CHANGED
@@ -1097,7 +1097,7 @@ class Compiler {
1097
1097
  if (value === 'for') {
1098
1098
  return this.parseLoopNode();
1099
1099
  }
1100
- if (hookType) {
1100
+ if (hookType || this.tokenizer.token.type & TokenType.String) {
1101
1101
  return this.parseComponentNode();
1102
1102
  }
1103
1103
  return this.parseElementNode();
@@ -1667,6 +1667,9 @@ class Interpreter {
1667
1667
  } else {
1668
1668
  return this.dynamicDeclaration(data, value, ctx);
1669
1669
  }
1670
+ } else if (this.tokenizer.token.type === TokenType.String) {
1671
+ _node = this.createNode('text');
1672
+ this.setProp(_node, 'text', String(value));
1670
1673
  } else {
1671
1674
  _node = this.createNode(value);
1672
1675
  }