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.compiler.cjs
CHANGED
|
@@ -2770,8 +2770,11 @@ function bobe(fragments, ...values) {
|
|
|
2770
2770
|
}
|
|
2771
2771
|
function customRender(option) {
|
|
2772
2772
|
const mw = new Mw();
|
|
2773
|
-
function render(Ctor, root) {
|
|
2773
|
+
function render(Ctor, root, options = {}) {
|
|
2774
2774
|
const store = Ctor.new();
|
|
2775
|
+
if (options.props) {
|
|
2776
|
+
Object.assign(store, options.props);
|
|
2777
|
+
}
|
|
2775
2778
|
const tokenizer = store.ui(false);
|
|
2776
2779
|
const terp = new Interpreter(tokenizer);
|
|
2777
2780
|
terp.config(option);
|