bobe 0.0.72 → 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 +4 -1
- package/dist/bobe.cjs.map +1 -1
- package/dist/bobe.compiler.cjs +4 -1
- package/dist/bobe.compiler.cjs.map +1 -1
- package/dist/bobe.compiler.esm.js +4 -1
- package/dist/bobe.compiler.esm.js.map +1 -1
- package/dist/bobe.esm.js +4 -1
- package/dist/bobe.esm.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
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);
|