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.
@@ -2769,8 +2769,11 @@ function bobe(fragments, ...values) {
2769
2769
  }
2770
2770
  function customRender(option) {
2771
2771
  const mw = new Mw();
2772
- function render(Ctor, root) {
2772
+ function render(Ctor, root, options = {}) {
2773
2773
  const store = Ctor.new();
2774
+ if (options.props) {
2775
+ Object.assign(store, options.props);
2776
+ }
2774
2777
  const tokenizer = store.ui(false);
2775
2778
  const terp = new Interpreter(tokenizer);
2776
2779
  terp.config(option);
@@ -2884,5 +2887,5 @@ const effect = (callback, depOrOpt, opt) => {
2884
2887
  return effect$1(callback, option);
2885
2888
  };
2886
2889
 
2887
- export { Compiler, FakeType, Mw, MwCtx, NodeType, ParseSyntaxError, Tokenizer, bobe, context, customRender, effect };
2890
+ export { Compiler, FakeType, Interpreter, Mw, MwCtx, NodeType, ParseSyntaxError, Tokenizer, bobe, context, customRender, effect };
2888
2891
  //# sourceMappingURL=bobe.compiler.esm.js.map