bobe 0.0.71 → 0.0.73

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 CHANGED
@@ -2743,8 +2743,11 @@ function bobe(fragments, ...values) {
2743
2743
  }
2744
2744
  function customRender(option) {
2745
2745
  const mw = new Mw();
2746
- function render(Ctor, root) {
2746
+ function render(Ctor, root, options = {}) {
2747
2747
  const store = Ctor.new();
2748
+ if (options.props) {
2749
+ Object.assign(store, options.props);
2750
+ }
2748
2751
  const tokenizer = store.ui(false);
2749
2752
  const terp = new Interpreter(tokenizer);
2750
2753
  terp.config(option);
@@ -2864,6 +2867,7 @@ Object.defineProperty(exports, "Store", {
2864
2867
  });
2865
2868
  exports.Compiler = Compiler;
2866
2869
  exports.FakeType = FakeType;
2870
+ exports.Interpreter = Interpreter;
2867
2871
  exports.Mw = Mw;
2868
2872
  exports.MwCtx = MwCtx;
2869
2873
  exports.NodeType = NodeType;