mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
fix: circular define tag references
This commit is contained in:
parent
8602326fbc
commit
1a2208e86a
5
.changeset/brave-eels-report.md
Normal file
5
.changeset/brave-eels-report.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@marko/runtime-tags": patch
|
||||
---
|
||||
|
||||
Add compile error for hoisted define tag references.
|
||||
5
.changeset/shaggy-glasses-cheer.md
Normal file
5
.changeset/shaggy-glasses-cheer.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@marko/runtime-tags": patch
|
||||
---
|
||||
|
||||
Fix issue with circular define tag references.
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _child_template;
|
||||
export const $walks = /* beginChild, _child_walks, endChild */`/${_child_walks}&`;
|
||||
export const $walks = /* <child> */`/${_child_walks}&`;
|
||||
import { $setup as _child, $input as _child_input, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $count = /* @__PURE__ */_._let("count/1", $scope => _child_input($scope["#childScope/0"], {
|
||||
|
||||
@ -9,7 +9,7 @@ const $await_content__setup = $scope => {
|
||||
$await_content__input_level($scope);
|
||||
};
|
||||
const $await_content__input_level = /* @__PURE__ */_._closure_get("input_level", $scope => $input_level($scope["#childScope/0"], $scope._._._.input_level - 1), $scope => $scope._._._);
|
||||
const $try_content__await = /* @__PURE__ */_._await("#text/0", `<!>${$template}<!>`, /* over(1), beginChild, $walks, endChild, over(1) */`b/${$walks}&b`, $await_content__setup);
|
||||
const $try_content__await = /* @__PURE__ */_._await("#text/0", `<!>${$template}<!>`, /* over(1), <recurse>, over(1) */`b/${$walks}&b`, $await_content__setup);
|
||||
const $try_content__setup = $scope => {
|
||||
$try_content__await($scope, new Promise(setImmediate));
|
||||
};
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_recurse_template}<!>`;
|
||||
export const $walks = /* over(1), beginChild, _recurse_walks, endChild, over(1) */`b/${_recurse_walks}&b`;
|
||||
export const $walks = /* over(1), <recurse>, over(1) */`b/${_recurse_walks}&b`;
|
||||
import { $setup as _recurse, $input_level as _recurse_input_level, $template as _recurse_template, $walks as _recurse_walks } from "./tags/recurse.marko";
|
||||
export function $setup($scope) {
|
||||
_recurse($scope["#childScope/0"]);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_customTag_template}`;
|
||||
export const $walks = /* over(1), beginChild, _customTag_walks, endChild */`b/${_customTag_walks}&`;
|
||||
export const $walks = /* over(1), <custom-tag> */`b/${_customTag_walks}&`;
|
||||
import { $setup as _customTag, $thing2 as _customTag_input_thing, $template as _customTag_template, $walks as _customTag_walks } from "./tags/custom-tag/index.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $thing_content2 = /* @__PURE__ */_._content("__tests__/template.marko_2_content", "Goodbye", /* over(1) */"b");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_hello_template}<!>`;
|
||||
export const $walks = /* over(1), beginChild, _hello_walks, endChild, over(1) */`b/${_hello_walks}&b`;
|
||||
export const $walks = /* over(1), <hello>, over(1) */`b/${_hello_walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _hello, $input_other as _hello_input_other, $input_item as _hello_input_item, $template as _hello_template, $walks as _hello_walks } from "./tags/hello/index.marko";
|
||||
const $other_content = /* @__PURE__ */_._content("__tests__/template.marko_2_content", "other", /* over(1) */"b");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_hello_template}<button>Toggle</button>`;
|
||||
export const $walks = /* over(1), beginChild, _hello_walks, endChild, get, over(1) */`b/${_hello_walks}& b`;
|
||||
export const $walks = /* over(1), <hello>, get, over(1) */`b/${_hello_walks}& b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _hello, $input_item as _hello_input_item, $template as _hello_template, $walks as _hello_walks } from "./tags/hello/index.marko";
|
||||
const $item_content__y = /* @__PURE__ */_._const("y", $scope => _._text($scope["#text/0"], $scope.y));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_hello_template}<!>`;
|
||||
export const $walks = /* over(1), beginChild, _hello_walks, endChild, over(1) */`b/${_hello_walks}&b`;
|
||||
export const $walks = /* over(1), <hello>, over(1) */`b/${_hello_walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _hello, $input_list_item as _hello_input_list_item, $input_col as _hello_input_col, $template as _hello_template, $walks as _hello_walks } from "./tags/hello/index.marko";
|
||||
const $row_content2 = _._content_resume("__tests__/template.marko_4_content", "Outside", /* over(1) */"b");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_list_template}<!>`;
|
||||
export const $walks = /* over(1), beginChild, _list_walks, endChild, over(1) */`b/${_list_walks}&b`;
|
||||
export const $walks = /* over(1), <list>, over(1) */`b/${_list_walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _list, $input_item as _list_input_item, $template as _list_template, $walks as _list_walks } from "./tags/list/index.marko";
|
||||
const $item_content = /* @__PURE__ */_._content_closures(/* @__PURE__ */_._content("__tests__/template.marko_1_content", " ", /* get, over(1) */" b"), {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_list_template}<button>Multiplier: <!></button>`;
|
||||
export const $walks = /* over(1), beginChild, _list_walks, endChild, get, next(1), over(1), replace, out(1) */`b/${_list_walks}& Db%l`;
|
||||
export const $walks = /* over(1), <list>, get, next(1), over(1), replace, out(1) */`b/${_list_walks}& Db%l`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _list, $input_item as _list_input_item, $template as _list_template, $walks as _list_walks } from "./tags/list/index.marko";
|
||||
const $item_content__mult__OR__item = /* @__PURE__ */_._or(1, $scope => _._text($scope["#text/0"], $scope.item * $scope._.mult));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_list_template}<!>`;
|
||||
export const $walks = /* over(1), beginChild, _list_walks, endChild, over(1) */`b/${_list_walks}&b`;
|
||||
export const $walks = /* over(1), <list>, over(1) */`b/${_list_walks}&b`;
|
||||
import { $setup as _list, $input_item as _list_input_item, $template as _list_template, $walks as _list_walks } from "./tags/list/index.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $item_content2 = /* @__PURE__ */_._content("__tests__/template.marko_2_content", "Again", /* over(1) */"b");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_hello_template}<!>`;
|
||||
export const $walks = /* over(1), beginChild, _hello_walks, endChild, over(1) */`b/${_hello_walks}&b`;
|
||||
export const $walks = /* over(1), <hello>, over(1) */`b/${_hello_walks}&b`;
|
||||
import { $setup as _hello, $input_foo as _hello_input_foo, $template as _hello_template, $walks as _hello_walks } from "./tags/hello/index.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $foo_content = /* @__PURE__ */_._content("__tests__/template.marko_1_content", "Foo!", /* over(1) */"b");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<div class=a></div><div class="a b"></div><div class="a b c"></div>${_customTag_template}${_customTag_template}<!><!>`;
|
||||
export const $walks = /* get, over(3), beginChild, _customTag_walks, endChild, beginChild, _customTag_walks, endChild, replace, over(2) */` d/${_customTag_walks}&/${_customTag_walks}&%c`;
|
||||
export const $walks = /* get, over(3), <custom-tag>, <custom-tag>, replace, over(2) */` d/${_customTag_walks}&/${_customTag_walks}&%c`;
|
||||
import CustomTag from "./tags/custom-tag.marko";
|
||||
const TestTag = CustomTag;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<div></div><div style=width:100px></div><div style="color: green"></div>${_customTag_template}${_customTag_template}${_customTag_template}<!><!>`;
|
||||
export const $walks = /* get, over(3), beginChild, _customTag_walks, endChild, beginChild, _customTag_walks, endChild, beginChild, _customTag_walks, endChild, replace, over(2) */` d/${_customTag_walks}&/${_customTag_walks}&/${_customTag_walks}&%c`;
|
||||
export const $walks = /* get, over(3), <custom-tag>, <custom-tag>, <custom-tag>, replace, over(2) */` d/${_customTag_walks}&/${_customTag_walks}&/${_customTag_walks}&%c`;
|
||||
import CustomTag from "./tags/custom-tag.marko";
|
||||
const TestTag = CustomTag;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _myButton_template;
|
||||
export const $walks = /* beginChild, _myButton_walks, endChild */`/${_myButton_walks}&`;
|
||||
export const $walks = /* <my-button> */`/${_myButton_walks}&`;
|
||||
import { $setup as _myButton, $text as _myButton_input_text, $onClick as _myButton_input_onClick, $template as _myButton_template, $walks as _myButton_walks } from "./tags/my-button.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $clickCount = /* @__PURE__ */_._let("clickCount/1", $scope => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _myButton_template;
|
||||
export const $walks = /* beginChild, _myButton_walks, endChild */`/${_myButton_walks}&`;
|
||||
export const $walks = /* <my-button> */`/${_myButton_walks}&`;
|
||||
import { $setup as _myButton, $text as _myButton_input_text, $onClick as _myButton_input_onClick, $template as _myButton_template, $walks as _myButton_walks } from "./tags/my-button.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $clickCount = /* @__PURE__ */_._let("clickCount/1", $scope => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_myButton_template}${_myButton_template}`;
|
||||
export const $walks = /* beginChild, _myButton_walks, endChild, beginChild, _myButton_walks, endChild */`/${_myButton_walks}&/${_myButton_walks}&`;
|
||||
export const $walks = /* <my-button>, <my-button> */`/${_myButton_walks}&/${_myButton_walks}&`;
|
||||
import { $setup as _myButton, $value2 as _myButton_input_value, $onClick as _myButton_input_onClick, $template as _myButton_template, $walks as _myButton_walks, $text as _myButton_input_value_text } from "./tags/my-button.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $clickCount = /* @__PURE__ */_._let("clickCount/2", $scope => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _myButton_template;
|
||||
export const $walks = /* beginChild, _myButton_walks, endChild */`/${_myButton_walks}&`;
|
||||
export const $walks = /* <my-button> */`/${_myButton_walks}&`;
|
||||
import { $setup as _myButton, $text as _myButton_input_text, $onClick as _myButton_input_onClick, $template as _myButton_template, $walks as _myButton_walks } from "./tags/my-button.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $clickCount = /* @__PURE__ */_._let("clickCount/1", $scope => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _myButton_template;
|
||||
export const $walks = /* beginChild, _myButton_walks, endChild */`/${_myButton_walks}&`;
|
||||
export const $walks = /* <my-button> */`/${_myButton_walks}&`;
|
||||
import { $setup as _myButton, $text as _myButton_input_text, $onClick as _myButton_input_onClick, $template as _myButton_template, $walks as _myButton_walks } from "./tags/my-button.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $clickCount = /* @__PURE__ */_._let("clickCount/1", $scope => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _myButton_template;
|
||||
export const $walks = /* beginChild, _myButton_walks, endChild */`/${_myButton_walks}&`;
|
||||
export const $walks = /* <my-button> */`/${_myButton_walks}&`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _myButton, $content as _myButton_input_content, $onClick as _myButton_input_onClick, $template as _myButton_template, $walks as _myButton_walks } from "./tags/my-button.marko";
|
||||
const $mybutton_content__clickCount = /* @__PURE__ */_._closure_get("clickCount", $scope => _._text($scope["#text/0"], $scope._.clickCount));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<div>${_counter_template}</div>`;
|
||||
export const $walks = /* next(1), beginChild, _counter_walks, endChild, out(1) */`D/${_counter_walks}&l`;
|
||||
export const $walks = /* next(1), <counter>, out(1) */`D/${_counter_walks}&l`;
|
||||
import { $setup as _counter, $template as _counter_template, $walks as _counter_walks } from "./tags/counter.marko";
|
||||
export function $setup($scope) {
|
||||
_counter($scope["#childScope/0"]);
|
||||
|
||||
@ -29,7 +29,7 @@ const $for_content__setup = $scope => {
|
||||
$for_content__open($scope, true);
|
||||
};
|
||||
const $for_content__comment_text = /* @__PURE__ */_._const("comment_text", $scope => _._text($scope["#text/1"], $scope.comment_text));
|
||||
const $for_content__if = /* @__PURE__ */_._if("#text/4", $template, /* beginChild, $walks, endChild */`/${$walks}&`, $if_content__setup);
|
||||
const $for_content__if = /* @__PURE__ */_._if("#text/4", $template, /* <comments> */`/${$walks}&`, $if_content__setup);
|
||||
const $for_content__comment_comments = /* @__PURE__ */_._const("comment_comments", $scope => {
|
||||
$for_content__if($scope, $scope.comment_comments ? 0 : 1);
|
||||
$if_content__comment_comments($scope);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _comments_template;
|
||||
export const $walks = /* beginChild, _comments_walks, endChild */`/${_comments_walks}&`;
|
||||
export const $walks = /* <comments> */`/${_comments_walks}&`;
|
||||
import { $setup as _comments, $input_comments as _comments_input_comments, $input_path as _comments_input_path, $template as _comments_template, $walks as _comments_walks } from "./tags/comments.marko";
|
||||
export function $setup($scope) {
|
||||
_comments($scope["#childScope/0"]);
|
||||
|
||||
@ -13,7 +13,9 @@ const $content = input => {
|
||||
const $scope2_id = _._scope_id();
|
||||
const $childScope = _._peek_scope_id();
|
||||
_._set_serialize_reason({
|
||||
/* input.comments, input.path */0: _._serialize_guard($scope0_reason, /* input.comments, input.path */0)
|
||||
/* input.comments, input.path */0: _._serialize_guard($scope0_reason, /* input.comments, input.path */0),
|
||||
/* input.comments */1: _._serialize_guard($scope0_reason, /* input.comments */1),
|
||||
/* input.path */2: _._serialize_guard($scope0_reason, /* input.comments, input.path */0)
|
||||
});
|
||||
$content({
|
||||
comments: comment.comments,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _layout_template;
|
||||
export const $walks = /* beginChild, _layout_walks, endChild */`/${_layout_walks}&`;
|
||||
export const $walks = /* <layout> */`/${_layout_walks}&`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _layout, $content as _layout_input_content, $template as _layout_template, $walks as _layout_walks } from "./tags/layout.marko";
|
||||
const $layout_content__name = /* @__PURE__ */_._closure_get("name", $scope => _._text($scope["#text/0"], $scope._.name));
|
||||
|
||||
@ -10,7 +10,7 @@ const $for_content2__outer__OR__inner = /* @__PURE__ */_._or(3, $scope => _child
|
||||
const $for_content2__outer = /* @__PURE__ */_._for_closure("#text/0", $for_content2__outer__OR__inner);
|
||||
const $for_content2__inner = /* @__PURE__ */_._const("inner", $for_content2__outer__OR__inner);
|
||||
const $for_content2__$params = /* @__PURE__ */_._const("$params3", $scope => $for_content2__inner($scope, $scope.$params3[0]));
|
||||
const $for_content__for = /* @__PURE__ */_._for_of("#text/0", _child_template, /* beginChild, _child_walks, endChild */`/${_child_walks}&`, $for_content2__setup, $for_content2__$params);
|
||||
const $for_content__for = /* @__PURE__ */_._for_of("#text/0", _child_template, /* <child> */`/${_child_walks}&`, $for_content2__setup, $for_content2__$params);
|
||||
const $for_content__items = /* @__PURE__ */_._for_closure("#text/1", $scope => $for_content__for($scope, [$scope._.items]));
|
||||
const $for_content__setup = $for_content__items;
|
||||
const $for_content__$params = /* @__PURE__ */_._const("$params2", $scope => $for_content__outer($scope, $scope.$params2[0]));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<button>Inc</button>${_child_template}`;
|
||||
export const $walks = /* get, over(1), beginChild, _child_walks, endChild */` b/${_child_walks}&`;
|
||||
export const $walks = /* get, over(1), <child> */` b/${_child_walks}&`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $content as _child_input_content, $value as _child_input_value, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
const $child_content2__outer = /* @__PURE__ */_._closure_get("outer", $scope => _._text($scope["#text/0"], $scope._.outer));
|
||||
@ -16,7 +16,7 @@ const $child_content__y = /* @__PURE__ */_._closure_get("y", $scope => _child_in
|
||||
const $child_content__$params = /* @__PURE__ */_._const("$params2", $scope => $child_content__outer($scope, $scope.$params2[0]));
|
||||
const $child_content__outer__closure = /* @__PURE__ */_._closure($child_content2__outer);
|
||||
const $child_content__outer = /* @__PURE__ */_._const("outer", $child_content__outer__closure);
|
||||
const $child_content = _._content_resume("__tests__/template.marko_1_content", _child_template, /* beginChild, _child_walks, endChild */`/${_child_walks}&`, $child_content__setup, $child_content__$params);
|
||||
const $child_content = _._content_resume("__tests__/template.marko_1_content", _child_template, /* <child> */`/${_child_walks}&`, $child_content__setup, $child_content__$params);
|
||||
const $x__script = _._script("__tests__/template.marko_0_x", $scope => _._on($scope["#button/0"], "click", function () {
|
||||
$x($scope, $scope.x + 1);
|
||||
}));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_child_template}<!>`;
|
||||
export const $walks = /* over(1), beginChild, _child_walks, endChild, over(1) */`b/${_child_walks}&b`;
|
||||
export const $walks = /* over(1), <child>, over(1) */`b/${_child_walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $input_content as _child_input_content, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
const $child_content__count__script = _._script("__tests__/template.marko_1_count", $scope => _._on($scope["#button/0"], "click", function () {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_counter_template}${_counter_template}`;
|
||||
export const $walks = /* beginChild, _counter_walks, endChild, beginChild, _counter_walks, endChild */`/${_counter_walks}&/${_counter_walks}&`;
|
||||
export const $walks = /* <counter>, <counter> */`/${_counter_walks}&/${_counter_walks}&`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _counter, $input_content as _counter_input_content, $count as _counter_input_count, $countChange2 as _counter_input_countChange, $input_id as _counter_input_id, $template as _counter_template, $walks as _counter_walks } from "./tags/counter.marko";
|
||||
const $counter_content2__x = /* @__PURE__ */_._closure_get("x", $scope => _._text($scope["#text/0"], $scope._.x));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _FancyButton_template;
|
||||
export const $walks = /* beginChild, _FancyButton_walks, endChild */`/${_FancyButton_walks}&`;
|
||||
export const $walks = /* <FancyButton> */`/${_FancyButton_walks}&`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _FancyButton, $input as _FancyButton_input, $template as _FancyButton_template, $walks as _FancyButton_walks } from "./tags/FancyButton.marko";
|
||||
const $FancyButton_content__clickCount = /* @__PURE__ */_._closure_get("clickCount", $scope => _._text($scope["#text/0"], $scope._.clickCount));
|
||||
|
||||
@ -8,7 +8,7 @@ const $if_content__setup = $scope => {
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $if_content__setter = /* @__PURE__ */_._if_closure("#text/0", 0, $scope => _child_input_valueChange($scope["#childScope/0"], $valueChange($scope)));
|
||||
const $setter2 = /* @__PURE__ */_._const("setter");
|
||||
const $if = /* @__PURE__ */_._if("#text/0", _child_template, /* beginChild, _child_walks, endChild */`/${_child_walks}&`, $if_content__setup);
|
||||
const $if = /* @__PURE__ */_._if("#text/0", _child_template, /* <child> */`/${_child_walks}&`, $if_content__setup);
|
||||
export function $setup($scope) {
|
||||
/* value */0;
|
||||
$setter2($scope, $setter($scope));
|
||||
|
||||
@ -9,7 +9,7 @@ const $for_content__setup = $scope => {
|
||||
const $for_content__write = /* @__PURE__ */_._for_closure("#text/2", $scope => _child_input_write($scope["#childScope/0"], $scope._.write));
|
||||
const $for_content__item = /* @__PURE__ */_._const("item", $scope => _child_input_name($scope["#childScope/0"], $scope.item));
|
||||
const $for_content__$params = /* @__PURE__ */_._const("$params2", $scope => $for_content__item($scope, $scope.$params2[0]));
|
||||
const $for = /* @__PURE__ */_._for_of("#text/2", _child_template, /* beginChild, _child_walks, endChild */`/${_child_walks}&`, $for_content__setup, $for_content__$params);
|
||||
const $for = /* @__PURE__ */_._for_of("#text/2", _child_template, /* <child> */`/${_child_walks}&`, $for_content__setup, $for_content__$params);
|
||||
const $items__script = _._script("__tests__/template.marko_0_items", $scope => _._on($scope["#button/0"], "click", function () {
|
||||
$items($scope, $scope.items?.length ? $scope.items.slice(0, -1) : [1, 2, 3]);
|
||||
}));
|
||||
|
||||
@ -15,7 +15,7 @@ const $if_content2__setup = $scope => {
|
||||
$if_content2__write($scope);
|
||||
};
|
||||
const $if_content2__write = /* @__PURE__ */_._closure_get("write", $scope => _child_input_write($scope["#childScope/0"], $scope._._.write), $scope => $scope._._);
|
||||
const $if_content2__if = /* @__PURE__ */_._if("#text/1", _child_template, /* beginChild, _child_walks, endChild */`/${_child_walks}&`, $if_content3__setup);
|
||||
const $if_content2__if = /* @__PURE__ */_._if("#text/1", _child_template, /* <child> */`/${_child_walks}&`, $if_content3__setup);
|
||||
const $if_content2__showInner = /* @__PURE__ */_._closure_get("showInner", $scope => $if_content2__if($scope, $scope._._.showInner ? 0 : 1), $scope => $scope._._);
|
||||
const $if_content__setup = $scope => {
|
||||
_child($scope["#childScope/0"]);
|
||||
@ -24,9 +24,9 @@ const $if_content__setup = $scope => {
|
||||
$if_content__write._($scope);
|
||||
};
|
||||
const $if_content__write = /* @__PURE__ */_._if_closure("#text/4", 0, $scope => _child_input_write($scope["#childScope/0"], $scope._.write));
|
||||
const $if_content__if = /* @__PURE__ */_._if("#text/1", `<div>${_child_template}<!></div>`, /* next(1), beginChild, _child_walks, endChild, replace, out(1) */`D/${_child_walks}&%l`, $if_content2__setup);
|
||||
const $if_content__if = /* @__PURE__ */_._if("#text/1", `<div>${_child_template}<!></div>`, /* next(1), <child>, replace, out(1) */`D/${_child_walks}&%l`, $if_content2__setup);
|
||||
const $if_content__showMiddle = /* @__PURE__ */_._if_closure("#text/4", 0, $scope => $if_content__if($scope, $scope._.showMiddle ? 0 : 1));
|
||||
const $if = /* @__PURE__ */_._if("#text/4", `<div>${_child_template}<!></div>`, /* next(1), beginChild, _child_walks, endChild, replace, out(1) */`D/${_child_walks}&%l`, $if_content__setup);
|
||||
const $if = /* @__PURE__ */_._if("#text/4", `<div>${_child_template}<!></div>`, /* next(1), <child>, replace, out(1) */`D/${_child_walks}&%l`, $if_content__setup);
|
||||
const $showOuter__script = _._script("__tests__/template.marko_0_showOuter", $scope => _._on($scope["#button/0"], "click", function () {
|
||||
$showOuter($scope, !$scope.showOuter);
|
||||
}));
|
||||
|
||||
@ -8,7 +8,7 @@ const $if_content__setup = $scope => {
|
||||
write: $write($scope)
|
||||
});
|
||||
};
|
||||
const $if = /* @__PURE__ */_._if("#text/2", _child_template, /* beginChild, _child_walks, endChild */`/${_child_walks}&`, $if_content__setup);
|
||||
const $if = /* @__PURE__ */_._if("#text/2", _child_template, /* <child> */`/${_child_walks}&`, $if_content__setup);
|
||||
const $show__script = _._script("__tests__/template.marko_0_show", $scope => _._on($scope["#button/0"], "click", function () {
|
||||
$show($scope, !$scope.show);
|
||||
}));
|
||||
|
||||
@ -22,10 +22,10 @@ const $for_content__outerItem = /* @__PURE__ */_._const("outerItem", $scope => {
|
||||
_child_input_name($scope["#childScope/0"], `${$scope.outerItem}`);
|
||||
$for_content2__outerItem($scope);
|
||||
});
|
||||
const $for_content__for = /* @__PURE__ */_._for_of("#text/1", `<div>${_child_template}</div>`, /* next(1), beginChild, _child_walks, endChild, out(1) */`D/${_child_walks}&l`, $for_content2__setup, $for_content2__$params);
|
||||
const $for_content__for = /* @__PURE__ */_._for_of("#text/1", `<div>${_child_template}</div>`, /* next(1), <child>, out(1) */`D/${_child_walks}&l`, $for_content2__setup, $for_content2__$params);
|
||||
const $for_content__items = /* @__PURE__ */_._for_closure("#text/2", $scope => $for_content__for($scope, [$scope._.items]));
|
||||
const $for_content__$params = /* @__PURE__ */_._const("$params2", $scope => $for_content__outerItem($scope, $scope.$params2[0]));
|
||||
const $for = /* @__PURE__ */_._for_of("#text/2", `<div>${_child_template}<!></div>`, /* next(1), beginChild, _child_walks, endChild, replace, out(1) */`D/${_child_walks}&%l`, $for_content__setup, $for_content__$params);
|
||||
const $for = /* @__PURE__ */_._for_of("#text/2", `<div>${_child_template}<!></div>`, /* next(1), <child>, replace, out(1) */`D/${_child_walks}&%l`, $for_content__setup, $for_content__$params);
|
||||
const $items__script = _._script("__tests__/template.marko_0_items", $scope => _._on($scope["#button/0"], "click", function () {
|
||||
$items($scope, $scope.items?.length ? $scope.items.slice(0, -1) : [1, 2, 3]);
|
||||
}));
|
||||
|
||||
@ -9,7 +9,7 @@ const $for_content__setup = $scope => {
|
||||
const $for_content__write = /* @__PURE__ */_._for_closure("#text/2", $scope => _child_input_write($scope["#childScope/0"], $scope._.write));
|
||||
const $for_content__item = /* @__PURE__ */_._const("item", $scope => _child_input_name($scope["#childScope/0"], $scope.item));
|
||||
const $for_content__$params = /* @__PURE__ */_._const("$params2", $scope => $for_content__item($scope, $scope.$params2[0]));
|
||||
const $for = /* @__PURE__ */_._for_of("#text/2", _child_template, /* beginChild, _child_walks, endChild */`/${_child_walks}&`, $for_content__setup, $for_content__$params);
|
||||
const $for = /* @__PURE__ */_._for_of("#text/2", _child_template, /* <child> */`/${_child_walks}&`, $for_content__setup, $for_content__$params);
|
||||
const $items__script = _._script("__tests__/template.marko_0_items", $scope => _._on($scope["#button/0"], "click", function () {
|
||||
$items($scope, $scope.items?.length ? $scope.items.slice(0, -1) : [1, 2, 3]);
|
||||
}));
|
||||
|
||||
@ -15,7 +15,7 @@ const $if_content2__setup = $scope => {
|
||||
$if_content2__write($scope);
|
||||
};
|
||||
const $if_content2__write = /* @__PURE__ */_._closure_get("write", $scope => _child_input_write($scope["#childScope/0"], $scope._._.write), $scope => $scope._._);
|
||||
const $if_content2__if = /* @__PURE__ */_._if("#text/1", _child_template, /* beginChild, _child_walks, endChild */`/${_child_walks}&`, $if_content3__setup);
|
||||
const $if_content2__if = /* @__PURE__ */_._if("#text/1", _child_template, /* <child> */`/${_child_walks}&`, $if_content3__setup);
|
||||
const $if_content2__showInner = /* @__PURE__ */_._closure_get("showInner", $scope => $if_content2__if($scope, $scope._._.showInner ? 0 : 1), $scope => $scope._._);
|
||||
const $if_content__setup = $scope => {
|
||||
_child($scope["#childScope/0"]);
|
||||
@ -24,9 +24,9 @@ const $if_content__setup = $scope => {
|
||||
$if_content__write._($scope);
|
||||
};
|
||||
const $if_content__write = /* @__PURE__ */_._if_closure("#text/4", 0, $scope => _child_input_write($scope["#childScope/0"], $scope._.write));
|
||||
const $if_content__if = /* @__PURE__ */_._if("#text/1", `<div>${_child_template}<!></div>`, /* next(1), beginChild, _child_walks, endChild, replace, out(1) */`D/${_child_walks}&%l`, $if_content2__setup);
|
||||
const $if_content__if = /* @__PURE__ */_._if("#text/1", `<div>${_child_template}<!></div>`, /* next(1), <child>, replace, out(1) */`D/${_child_walks}&%l`, $if_content2__setup);
|
||||
const $if_content__showMiddle = /* @__PURE__ */_._if_closure("#text/4", 0, $scope => $if_content__if($scope, $scope._.showMiddle ? 0 : 1));
|
||||
const $if = /* @__PURE__ */_._if("#text/4", `<div>${_child_template}<!></div>`, /* next(1), beginChild, _child_walks, endChild, replace, out(1) */`D/${_child_walks}&%l`, $if_content__setup);
|
||||
const $if = /* @__PURE__ */_._if("#text/4", `<div>${_child_template}<!></div>`, /* next(1), <child>, replace, out(1) */`D/${_child_walks}&%l`, $if_content__setup);
|
||||
const $showOuter__script = _._script("__tests__/template.marko_0_showOuter", $scope => _._on($scope["#button/0"], "click", function () {
|
||||
$showOuter($scope, !$scope.showOuter);
|
||||
}));
|
||||
|
||||
@ -8,7 +8,7 @@ const $if_content__setup = $scope => {
|
||||
write: $write($scope)
|
||||
});
|
||||
};
|
||||
const $if = /* @__PURE__ */_._if("#text/2", _child_template, /* beginChild, _child_walks, endChild */`/${_child_walks}&`, $if_content__setup);
|
||||
const $if = /* @__PURE__ */_._if("#text/2", _child_template, /* <child> */`/${_child_walks}&`, $if_content__setup);
|
||||
const $show__script = _._script("__tests__/template.marko_0_show", $scope => _._on($scope["#button/0"], "click", function () {
|
||||
$show($scope, !$scope.show);
|
||||
}));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _counter_template;
|
||||
export const $walks = /* beginChild, _counter_walks, endChild */`/${_counter_walks}&`;
|
||||
export const $walks = /* <counter> */`/${_counter_walks}&`;
|
||||
import { formatNumber } from "./helpers";
|
||||
import { $setup as _counter, $input as _counter_input, $template as _counter_template, $walks as _counter_walks } from "./tags/counter.marko";
|
||||
export function $setup($scope) {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_displayIntersection_template}<button></button>`;
|
||||
export const $walks = /* beginChild, _displayIntersection_walks, endChild, get, over(1) */`/${_displayIntersection_walks}& b`;
|
||||
export const $walks = /* <display-intersection>, get, over(1) */`/${_displayIntersection_walks}& b`;
|
||||
import { $setup as _displayIntersection, $value as _displayIntersection_input_value, $template as _displayIntersection_template, $walks as _displayIntersection_walks } from "./tags/display-intersection.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $count__script = _._script("__tests__/template.marko_0_count", $scope => _._on($scope["#button/1"], "click", function () {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_counter_template}${_counter_template}`;
|
||||
export const $walks = /* beginChild, _counter_walks, endChild, beginChild, _counter_walks, endChild */`/${_counter_walks}&/${_counter_walks}&`;
|
||||
export const $walks = /* <counter>, <counter> */`/${_counter_walks}&/${_counter_walks}&`;
|
||||
const formatNumber = $formatNumber;
|
||||
const formatNumber2 = $formatNumber2;
|
||||
import { $setup as _counter, $input as _counter_input, $template as _counter_template, $walks as _counter_walks } from "./tags/counter.marko";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_price_template}${_price_template}`;
|
||||
export const $walks = /* beginChild, _price_walks, endChild, beginChild, _price_walks, endChild */`/${_price_walks}&/${_price_walks}&`;
|
||||
export const $walks = /* <price>, <price> */`/${_price_walks}&/${_price_walks}&`;
|
||||
const formatNumber = n => {
|
||||
return "$" + n.toFixed(2);
|
||||
};
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_checkbox_template}<span> </span>`;
|
||||
export const $walks = /* beginChild, _checkbox_walks, endChild, next(1), get, out(1) */`/${_checkbox_walks}&D l`;
|
||||
export const $walks = /* <checkbox>, next(1), get, out(1) */`/${_checkbox_walks}&D l`;
|
||||
import { $setup as _checkbox, $input as _checkbox_input, $template as _checkbox_template, $walks as _checkbox_walks } from "./tags/checkbox.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $checked = /* @__PURE__ */_._let("checked/2", $scope => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_checkbox_template}${_checkbox_template}${_checkbox_template}<span> </span>`;
|
||||
export const $walks = /* beginChild, _checkbox_walks, endChild, beginChild, _checkbox_walks, endChild, beginChild, _checkbox_walks, endChild, next(1), get, out(1) */`/${_checkbox_walks}&/${_checkbox_walks}&/${_checkbox_walks}&D l`;
|
||||
export const $walks = /* <checkbox>, <checkbox>, <checkbox>, next(1), get, out(1) */`/${_checkbox_walks}&/${_checkbox_walks}&/${_checkbox_walks}&D l`;
|
||||
import { $setup as _checkbox, $input as _checkbox_input, $template as _checkbox_template, $walks as _checkbox_walks } from "./tags/checkbox.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $checkedValue__OR__checkedValueChange = /* @__PURE__ */_._or(6, $scope => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_myLet_template}${_myTag_template}<!>`;
|
||||
export const $walks = /* over(1), beginChildWithVar, _myLet_walks, endChild, beginChild, _myTag_walks, endChild, over(1) */`b0${_myLet_walks}&/${_myTag_walks}&b`;
|
||||
export const $walks = /* over(1), <my-let/var>, <my-tag>, over(1) */`b0${_myLet_walks}&/${_myTag_walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _myLet, $input_value as _myLet_input_value, $template as _myLet_template, $walks as _myLet_walks } from "./tags/my-let.marko";
|
||||
import { $setup as _myTag, $input_content as _myTag_input_content, $template as _myTag_template, $walks as _myTag_walks } from "./tags/my-tag.marko";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_child_template}${_child_template}`;
|
||||
export const $walks = /* beginChild, _child_walks, endChild, beginChild, _child_walks, endChild */`/${_child_walks}&/${_child_walks}&`;
|
||||
export const $walks = /* <child>, <child> */`/${_child_walks}&/${_child_walks}&`;
|
||||
import { $setup as _child, $input_value as _child_input_value, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $x = /* @__PURE__ */_._let("x/2", $scope => _child_input_value($scope["#childScope/1"], $scope.x));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_customTag_template}<!>`;
|
||||
export const $walks = /* beginChild, _customTag_walks, endChild, over(1) */`/${_customTag_walks}&b`;
|
||||
export const $walks = /* <custom-tag>, over(1) */`/${_customTag_walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _customTag, $input_content as _customTag_input_content, $template as _customTag_template, $walks as _customTag_walks } from "./tags/custom-tag.marko";
|
||||
const $customtag_content__count = /* @__PURE__ */_._const("count", $scope => _._text($scope["#text/0"], $scope.count));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_customTag_template}<!>`;
|
||||
export const $walks = /* beginChild, _customTag_walks, endChild, over(1) */`/${_customTag_walks}&b`;
|
||||
export const $walks = /* <custom-tag>, over(1) */`/${_customTag_walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _customTag, $input_content as _customTag_input_content, $input_name as _customTag_input_name, $template as _customTag_template, $walks as _customTag_walks } from "./tags/custom-tag.marko";
|
||||
const $customtag_content__name = /* @__PURE__ */_._const("name", $scope => _._text($scope["#text/0"], $scope.name));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_customTag_template}<!>`;
|
||||
export const $walks = /* beginChild, _customTag_walks, endChild, over(1) */`/${_customTag_walks}&b`;
|
||||
export const $walks = /* <custom-tag>, over(1) */`/${_customTag_walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _customTag, $input_content as _customTag_input_content, $template as _customTag_template, $walks as _customTag_walks } from "./tags/custom-tag.marko";
|
||||
const $customtag_content__count = /* @__PURE__ */_._const("count", $scope => _._text($scope["#text/0"], $scope.count));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_child_template}<!>`;
|
||||
export const $walks = /* beginChild, _child_walks, endChild, over(1) */`/${_child_walks}&b`;
|
||||
export const $walks = /* <child>, over(1) */`/${_child_walks}&b`;
|
||||
import { $setup as _child, $content as _child_input_content, $name as _child_input_name, $template as _child_template, $walks as _child_walks } from "./tags/child/index.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $child_content = /* @__PURE__ */_._content("__tests__/template.marko_1_content", "This is the body content", /* over(1) */"b");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _hello_template;
|
||||
export const $walks = /* beginChild, _hello_walks, endChild */`/${_hello_walks}&`;
|
||||
export const $walks = /* <hello> */`/${_hello_walks}&`;
|
||||
import { $setup as _hello, $input_name as _hello_input_name, $template as _hello_template, $walks as _hello_walks } from "./hello.marko";
|
||||
export function $setup($scope) {
|
||||
_hello($scope["#childScope/0"]);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_counter_template}<button class=inc-parent> </button><button class=reset>reset</button>`;
|
||||
export const $walks = /* beginChildWithVar, _counter_walks, endChild, get, next(1), get, out(1), get, over(1) */`0${_counter_walks}& D l b`;
|
||||
export const $walks = /* <counter/var>, get, next(1), get, out(1), get, over(1) */`0${_counter_walks}& D l b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _counter, $template as _counter_template, $walks as _counter_walks } from "./tags/counter.marko";
|
||||
const $count__script = _._script("__tests__/template.marko_0_count", $scope => _._on($scope["#button/2"], "click", function () {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_child_template}<div> </div>`;
|
||||
export const $walks = /* beginChildWithVar, _child_walks, endChild, next(1), get, out(1) */`0${_child_walks}&D l`;
|
||||
export const $walks = /* <child/var>, next(1), get, out(1) */`0${_child_walks}&D l`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
const $data = _._var_resume("__tests__/template.marko_0_data/var", /* @__PURE__ */_._const("data", $scope => _._text($scope["#text/2"], $scope.data)));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_child_template}<div> </div>`;
|
||||
export const $walks = /* beginChildWithVar, _child_walks, endChild, next(1), get, out(1) */`0${_child_walks}&D l`;
|
||||
export const $walks = /* <child/var>, next(1), get, out(1) */`0${_child_walks}&D l`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $input_extra as _child_input_extra, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
const $message = /* @__PURE__ */_._const("message", $scope => _._text($scope["#text/2"], $scope.message));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_child_template}<div> </div>`;
|
||||
export const $walks = /* beginChildWithVar, _child_walks, endChild, next(1), get, out(1) */`0${_child_walks}&D l`;
|
||||
export const $walks = /* <child/var>, next(1), get, out(1) */`0${_child_walks}&D l`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
const $data = _._var_resume("__tests__/template.marko_0_data/var", /* @__PURE__ */_._const("data", $scope => _._text($scope["#text/2"], $scope.data)));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_child_template}<div> </div>`;
|
||||
export const $walks = /* beginChildWithVar, _child_walks, endChild, next(1), get, out(1) */`0${_child_walks}&D l`;
|
||||
export const $walks = /* <child/var>, next(1), get, out(1) */`0${_child_walks}&D l`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
const $data = _._var_resume("__tests__/template.marko_0_data/var", /* @__PURE__ */_._const("data", $scope => _._text($scope["#text/2"], $scope.data)));
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
{
|
||||
"vars": {
|
||||
"props": {
|
||||
"$_": "t",
|
||||
"$$Bar_content__setup": "_",
|
||||
"$$if_content__setup": "a",
|
||||
"$$if_content": "n",
|
||||
"$$Foo_content__if": "o",
|
||||
"$$Foo_content__tag_input_show": "c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
# Render
|
||||
```html
|
||||
foo foo
|
||||
```
|
||||
@ -0,0 +1,18 @@
|
||||
# Render
|
||||
```html
|
||||
<!---->
|
||||
<!---->
|
||||
<!---->
|
||||
<!---->
|
||||
<!---->
|
||||
foo
|
||||
<!---->
|
||||
<!---->
|
||||
foo
|
||||
<!---->
|
||||
```
|
||||
|
||||
# Mutations
|
||||
```
|
||||
INSERT #comment0, #comment1, #comment2, #comment3, #comment4, #text0, #text1, #comment5, #comment6, #text2, #comment7
|
||||
```
|
||||
@ -0,0 +1 @@
|
||||
// size: 0
|
||||
@ -0,0 +1,19 @@
|
||||
const $Foo_content__walks = /* over(1), replace, over(2) */"b%c",
|
||||
$Foo_content__template = "<!><!> foo",
|
||||
$Bar_content__walks = /* over(1), <Foo>, over(1) */`b/${$Foo_content__walks}&b`,
|
||||
$Bar_content__template = `<!>${$Foo_content__template}<!>`;
|
||||
export const $template = `<!>${$Foo_content__template}<!>`;
|
||||
export const $walks = /* over(1), <Foo>, over(1) */`b/${$Foo_content__walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $Bar_content__setup = /* @__PURE__ */_._child_setup($scope => $Foo_content__tag_input_show($scope["#childScope/0"], void 0));
|
||||
const $if_content__setup = $scope => {
|
||||
$Bar_content__setup._($scope["#childScope/0"], $scope);
|
||||
};
|
||||
const $Foo_content__if = /* @__PURE__ */_._if("#text/0", `<!>${$Bar_content__template}<!>`, /* over(1), <Bar>, over(1) */`b/${$Bar_content__walks}&b`, $if_content__setup);
|
||||
const $Foo_content__tag_input_show = /* @__PURE__ */_._const("show", $scope => $Foo_content__if($scope, $scope.show ? 0 : 1));
|
||||
const $Foo_content__$params = /* @__PURE__ */_._const("$params2", $scope => $Foo_content__$temp($scope, $scope.$params2?.[0]));
|
||||
const $Foo_content__$temp = /* @__PURE__ */_._const("$temp", $scope => $Foo_content__tag_input_show($scope, $scope.$temp.show));
|
||||
export function $setup($scope) {
|
||||
$Foo_content__tag_input_show($scope["#childScope/0"], true);
|
||||
}
|
||||
export default /* @__PURE__ */_._template("__tests__/template.marko", $template, $walks, $setup);
|
||||
@ -0,0 +1,31 @@
|
||||
import * as _ from "@marko/runtime-tags/debug/html";
|
||||
export default _._template("__tests__/template.marko", input => {
|
||||
const $scope0_id = _._scope_id();
|
||||
const Foo = {
|
||||
content: _._content("__tests__/template.marko_1_content", ({
|
||||
show
|
||||
}) => {
|
||||
const $scope1_id = _._scope_id();
|
||||
const $scope1_reason = _._scope_reason();
|
||||
_._if(() => {
|
||||
if (show) {
|
||||
const $scope2_id = _._scope_id();
|
||||
const Bar = {
|
||||
content: _._content("__tests__/template.marko_3_content", () => {
|
||||
const $scope3_id = _._scope_id();
|
||||
Foo.content({});
|
||||
})
|
||||
};
|
||||
Bar.content({});
|
||||
_._serialize_if($scope1_reason, /* show */0) && _._scope($scope2_id, {}, "__tests__/template.marko", "2:4");
|
||||
return 0;
|
||||
}
|
||||
}, $scope1_id, "#text/0", _._serialize_guard($scope1_reason, /* show */0), _._serialize_guard($scope1_reason, /* show */0), _._serialize_guard($scope1_reason, /* show */0));
|
||||
_._html(" foo");
|
||||
_._serialize_if($scope1_reason, /* show */0) && _._scope($scope1_id, {}, "__tests__/template.marko", "1:2");
|
||||
})
|
||||
};
|
||||
Foo.content({
|
||||
show: true
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,4 @@
|
||||
# Render
|
||||
```html
|
||||
foo foo
|
||||
```
|
||||
@ -0,0 +1,9 @@
|
||||
# Render
|
||||
```html
|
||||
<html>
|
||||
<head />
|
||||
<body>
|
||||
foo foo
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
@ -0,0 +1,4 @@
|
||||
# Render End
|
||||
```html
|
||||
foo foo
|
||||
```
|
||||
@ -0,0 +1,22 @@
|
||||
# Write
|
||||
```html
|
||||
foo foo
|
||||
```
|
||||
|
||||
# Render End
|
||||
```html
|
||||
<html>
|
||||
<head />
|
||||
<body>
|
||||
foo foo
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
# Mutations
|
||||
```
|
||||
INSERT html
|
||||
INSERT html/head
|
||||
INSERT html/body
|
||||
INSERT html/body/#text
|
||||
```
|
||||
@ -0,0 +1,11 @@
|
||||
<define/Foo|{ show }|>
|
||||
<if=show>
|
||||
<define/Bar>
|
||||
<Foo/>
|
||||
</define>
|
||||
<Bar/>
|
||||
</if>
|
||||
foo
|
||||
</define>
|
||||
|
||||
<Foo show/>
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_child_template}<button>Toggle</button>`;
|
||||
export const $walks = /* beginChild, _child_walks, endChild, get, over(1) */`/${_child_walks}& b`;
|
||||
export const $walks = /* <child>, get, over(1) */`/${_child_walks}& b`;
|
||||
import { $setup as _child, $input_thing as _child_input_thing, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $myThing_content = /* @__PURE__ */_._content("__tests__/template.marko_1_content", "<span>The thing</span>", /* over(1) */"b");
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
const $MyTag_content__walks = /* next(1), replace, over(2), replace, over(2), replace, out(1) */"D%c%c%l",
|
||||
$MyTag_content__template = "<div><!>|<!>|<!></div>";
|
||||
export const $template = `<!>${$MyTag_content__template}<button> </button>`;
|
||||
export const $walks = /* over(1), beginChild, $MyTag_content__walks, endChild, get, next(1), get, out(1) */`b/${$MyTag_content__walks}& D l`;
|
||||
export const $walks = /* over(1), <MyTag>, get, next(1), get, out(1) */`b/${$MyTag_content__walks}& D l`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $MyTag_content__a = /* @__PURE__ */_._const("a", $scope => _._text($scope["#text/0"], $scope.a));
|
||||
const $MyTag_content__b = /* @__PURE__ */_._const("b", $scope => _._text($scope["#text/1"], $scope.b));
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
const $MyTag_content__walks = /* next(1), get, out(1) */"D l",
|
||||
$MyTag_content__template = "<div> </div>";
|
||||
export const $template = `<!>${$MyTag_content__template}<button> </button>`;
|
||||
export const $walks = /* over(1), beginChild, $MyTag_content__walks, endChild, get, next(1), get, out(1) */`b/${$MyTag_content__walks}& D l`;
|
||||
export const $walks = /* over(1), <MyTag>, get, next(1), get, out(1) */`b/${$MyTag_content__walks}& D l`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $MyTag_content__number = /* @__PURE__ */_._const("number", $scope => _._text($scope["#text/0"], $scope.number));
|
||||
const $MyTag_content__$params = /* @__PURE__ */_._const("$params2", $scope => $MyTag_content__$temp($scope, $scope.$params2?.[0]));
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
const $MyTag_content__walks = /* next(1), get, out(1) */"D l",
|
||||
$MyTag_content__template = "<div> </div>";
|
||||
export const $template = `<!>${$MyTag_content__template}<!><button> </button>`;
|
||||
export const $walks = /* over(1), beginChild, $MyTag_content__walks, endChild, replace, over(1), get, next(1), get, out(1) */`b/${$MyTag_content__walks}&%b D l`;
|
||||
export const $walks = /* over(1), <MyTag>, replace, over(1), get, next(1), get, out(1) */`b/${$MyTag_content__walks}&%b D l`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $if_content__setup = $scope => {
|
||||
$MyTag_content__setup._($scope["#childScope/0"], $scope._);
|
||||
};
|
||||
const $MyTag_content__x = /* @__PURE__ */_._closure_get("x", $scope => _._text($scope["#text/0"], $scope._.x));
|
||||
const $MyTag_content__setup = /* @__PURE__ */_._child_setup($MyTag_content__x);
|
||||
const $if = /* @__PURE__ */_._if("#text/1", `<!>${$MyTag_content__template}<!>`, /* over(1), beginChild, $MyTag_content__walks, endChild, over(1) */`b/${$MyTag_content__walks}&b`, $if_content__setup);
|
||||
const $if = /* @__PURE__ */_._if("#text/1", `<!>${$MyTag_content__template}<!>`, /* over(1), <MyTag>, over(1) */`b/${$MyTag_content__walks}&b`, $if_content__setup);
|
||||
const $x__closure = /* @__PURE__ */_._closure($MyTag_content__x);
|
||||
const $x__script = _._script("__tests__/template.marko_0_x", $scope => _._on($scope["#button/2"], "click", function () {
|
||||
$x($scope, $scope.x + 1);
|
||||
|
||||
@ -8,7 +8,7 @@ const $MyTag_content__$params = /* @__PURE__ */_._const("$params2", $scope => $M
|
||||
const $MyTag_content__$temp = /* @__PURE__ */_._const("$temp", $scope => $MyTag_content__value($scope, $scope.$temp.value));
|
||||
const $if_content__x = /* @__PURE__ */_._if_closure("#text/0", 0, $scope => $MyTag_content__value($scope["#childScope/0"], $scope._.x));
|
||||
const $if_content__setup = $if_content__x;
|
||||
const $if = /* @__PURE__ */_._if("#text/0", `<!>${$MyTag_content__template}<!>`, /* over(1), beginChild, $MyTag_content__walks, endChild, over(1) */`b/${$MyTag_content__walks}&b`, $if_content__setup);
|
||||
const $if = /* @__PURE__ */_._if("#text/0", `<!>${$MyTag_content__template}<!>`, /* over(1), <MyTag>, over(1) */`b/${$MyTag_content__walks}&b`, $if_content__setup);
|
||||
const $show = /* @__PURE__ */_._let("show/3", $scope => $if($scope, $scope.show ? 0 : 1));
|
||||
const $x__script = _._script("__tests__/template.marko_0_x", $scope => _._on($scope["#button/1"], "click", function () {
|
||||
$x($scope, $scope.x + 1);
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
const $MyTag_content__walks = /* next(1), over(1), replace, over(2), replace, out(1) */"Db%c%l",
|
||||
$MyTag_content__template = "<div>Hello <!> <!></div>";
|
||||
export const $template = `<button> </button>${$MyTag_content__template}<!>`;
|
||||
export const $walks = /* get, next(1), get, out(1), beginChild, $MyTag_content__walks, endChild, over(1) */` D l/${$MyTag_content__walks}&b`;
|
||||
export const $walks = /* get, next(1), get, out(1), <MyTag>, over(1) */` D l/${$MyTag_content__walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $MyTag_content__name = /* @__PURE__ */_._const("name", $scope => _._text($scope["#text/0"], $scope.name));
|
||||
const $MyTag_content__count = /* @__PURE__ */_._const("count", $scope => _._text($scope["#text/1"], $scope.count));
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
const $MyTag_content__walks = /* next(1), over(1), replace, over(2), replace, out(1), get, next(1), get, out(1) */"Db%c%l D l",
|
||||
$MyTag_content__template = "<div>Hello <!> <!></div><button> </button>";
|
||||
export const $template = `<!>${$MyTag_content__template}<!>`;
|
||||
export const $walks = /* over(1), beginChild, $MyTag_content__walks, endChild, over(1) */`b/${$MyTag_content__walks}&b`;
|
||||
export const $walks = /* over(1), <MyTag>, over(1) */`b/${$MyTag_content__walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $MyTag_content__y__script = _._script("__tests__/template.marko_1_y", $scope => _._on($scope["#button/2"], "click", function () {
|
||||
$MyTag_content__y($scope, $scope.y + 1);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_store_template}<button>Clear</button><ul></ul>`;
|
||||
export const $walks = /* beginChildWithVar, _store_walks, endChild, get, over(1), get, over(1) */`0${_store_walks}& b b`;
|
||||
export const $walks = /* <store/var>, get, over(1), get, over(1) */`0${_store_walks}& b b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _store, $input_value as _store_input_value, $template as _store_template, $walks as _store_walks } from "./tags/store.marko";
|
||||
const $for_content__item = /* @__PURE__ */_._const("item", $scope => _._text($scope["#text/0"], $scope.item));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<button></button>${_customTag_template}<div></div>`;
|
||||
export const $walks = /* get, over(1), beginChild, _customTag_walks, endChild, get, over(1) */` b/${_customTag_walks}& b`;
|
||||
export const $walks = /* get, over(1), <custom-tag>, get, over(1) */` b/${_customTag_walks}& b`;
|
||||
const a = 1;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _customTag, $input_content as _customTag_input_content, $template as _customTag_template, $walks as _customTag_walks } from "./tags/custom-tag.marko";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_child_template}${_child_template}`;
|
||||
export const $walks = /* beginChild, _child_walks, endChild, beginChild, _child_walks, endChild */`/${_child_walks}&/${_child_walks}&`;
|
||||
export const $walks = /* <child>, <child> */`/${_child_walks}&/${_child_walks}&`;
|
||||
import { $setup as _child, $input as _child_input, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $child_content = /* @__PURE__ */_._content("__tests__/template.marko_1_content", "Hello", /* over(1) */"b");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_myTag_template}${_myTag_template}<!>`;
|
||||
export const $walks = /* over(1), beginChild, _myTag_walks, endChild, beginChild, _myTag_walks, endChild, over(1) */`b/${_myTag_walks}&/${_myTag_walks}&b`;
|
||||
export const $walks = /* over(1), <my-tag>, <my-tag>, over(1) */`b/${_myTag_walks}&/${_myTag_walks}&b`;
|
||||
import { $setup as _myTag, $input as _myTag_input, $template as _myTag_template, $walks as _myTag_walks } from "./tags/my-tag.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $mytag_content2 = _._content_resume("__tests__/template.marko_2_content", "Span", /* over(1) */"b");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<div>${_wrapper_template}</div><div>${_wrapper_template}</div><div>${_wrapper_template}</div><div>${_wrapper_template}</div>`;
|
||||
export const $walks = /* next(1), beginChild, _wrapper_walks, endChild, out(1), next(1), beginChild, _wrapper_walks, endChild, out(1), next(1), beginChild, _wrapper_walks, endChild, out(1), next(1), beginChild, _wrapper_walks, endChild, out(1) */`D/${_wrapper_walks}&lD/${_wrapper_walks}&lD/${_wrapper_walks}&lD/${_wrapper_walks}&l`;
|
||||
export const $walks = /* next(1), <wrapper>, out(1), next(1), <wrapper>, out(1), next(1), <wrapper>, out(1), next(1), <wrapper>, out(1) */`D/${_wrapper_walks}&lD/${_wrapper_walks}&lD/${_wrapper_walks}&lD/${_wrapper_walks}&l`;
|
||||
import { $setup as _wrapper, $input as _wrapper_input, $template as _wrapper_template, $walks as _wrapper_walks } from "./tags/wrapper.marko";
|
||||
export function $setup($scope) {
|
||||
_wrapper($scope["#childScope/0"]);
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_child_template}<!><!><!><!>`;
|
||||
export const $walks = /* over(1), beginChildWithVar, _child_walks, endChild, dynamicTagWithVar, over(1), dynamicTagWithVar, over(1), dynamicTagWithVar, over(2) */`b0${_child_walks}&1b1b1c`;
|
||||
export const $walks = /* over(1), <child/var>, dynamicTagWithVar, over(1), dynamicTagWithVar, over(1), dynamicTagWithVar, over(2) */`b0${_child_walks}&1b1b1c`;
|
||||
import child from "./tags/child/index.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child/index.marko";
|
||||
|
||||
@ -5,7 +5,7 @@ import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $tagName_content__setup = $scope => {
|
||||
_counter($scope["#childScope/0"]);
|
||||
};
|
||||
const $tagName_content = _._content_resume("__tests__/template.marko_1_content", _counter_template, /* beginChild, _counter_walks, endChild */`/${_counter_walks}&`, $tagName_content__setup);
|
||||
const $tagName_content = _._content_resume("__tests__/template.marko_1_content", _counter_template, /* <counter> */`/${_counter_walks}&`, $tagName_content__setup);
|
||||
const $dynamicTag = /* @__PURE__ */_._dynamic_tag("#text/0", $tagName_content);
|
||||
const $tagName__script = _._script("__tests__/template.marko_0_tagName", $scope => _._on($scope["#button/1"], "click", function () {
|
||||
$tagName($scope, $scope.tagName === "span" ? "div" : "span");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<div>${_child_template}</div>`;
|
||||
export const $walks = /* next(1), beginChild, _child_walks, endChild, out(1) */`D/${_child_walks}&l`;
|
||||
export const $walks = /* next(1), <child>, out(1) */`D/${_child_walks}&l`;
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
export function $setup($scope) {
|
||||
_child($scope["#childScope/0"]);
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
|
||||
at packages/runtime-tags/src/__tests__/fixtures/error-define-tag-hoist/template.marko:2:3
|
||||
1 | define/B
|
||||
> 2 | A
|
||||
| ^ Hoisted values must be functions. The `<define>` tag variable may not be hoisted. Please move the `<define>` tag prior to any references or extract to a separate `.marko` file.
|
||||
3 |
|
||||
4 | define/A
|
||||
5 | -- Hello
|
||||
@ -0,0 +1,8 @@
|
||||
|
||||
at packages/runtime-tags/src/__tests__/fixtures/error-define-tag-hoist/template.marko:2:3
|
||||
1 | define/B
|
||||
> 2 | A
|
||||
| ^ Hoisted values must be functions. The `<define>` tag variable may not be hoisted. Please move the `<define>` tag prior to any references or extract to a separate `.marko` file.
|
||||
3 |
|
||||
4 | define/A
|
||||
5 | -- Hello
|
||||
@ -0,0 +1,7 @@
|
||||
define/B
|
||||
A
|
||||
|
||||
define/A
|
||||
-- Hello
|
||||
|
||||
B
|
||||
@ -0,0 +1 @@
|
||||
export const error_compiler = true;
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _child_template;
|
||||
export const $walks = /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`;
|
||||
export const $walks = /* <child/var> */`0${_child_walks}&`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
const $x = _._var_resume("__tests__/template.marko_0_x/var", $scope => {});
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<div><!>\` ${_child_template}</div>`;
|
||||
export const $walks = /* next(1), replace, over(2), beginChild, _child_walks, endChild, out(1) */`D%c/${_child_walks}&l`;
|
||||
export const $walks = /* next(1), replace, over(2), <child>, out(1) */`D%c/${_child_walks}&l`;
|
||||
const count = 1;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_thing_template}<!>`;
|
||||
export const $walks = /* over(1), beginChild, _thing_walks, endChild, over(1) */`b/${_thing_walks}&b`;
|
||||
export const $walks = /* over(1), <thing>, over(1) */`b/${_thing_walks}&b`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
import { $setup as _thing, $input_what as _thing_input_what, $template as _thing_template, $walks as _thing_walks } from "./tags/thing.marko";
|
||||
@ -9,7 +9,7 @@ const $what_content__setup = $scope => {
|
||||
_._var($scope, "#childScope/0", $what_content__setHtml);
|
||||
_child($scope["#childScope/0"]);
|
||||
};
|
||||
const $what_content = /* @__PURE__ */_._content("__tests__/template.marko_1_content", _child_template, /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`, $what_content__setup, 0, "ClosureScopes:1");
|
||||
const $what_content = /* @__PURE__ */_._content("__tests__/template.marko_1_content", _child_template, /* <child/var> */`0${_child_walks}&`, $what_content__setup, 0, "ClosureScopes:1");
|
||||
const $hoisted_setHtml2__script = _._script("__tests__/template.marko_0_$hoisted_setHtml", $scope => {
|
||||
for (const fn of $scope.$hoisted_setHtml) {
|
||||
fn('Hoist from custom tag');
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_thing_template}<!><!><!>`;
|
||||
export const $walks = /* over(1), beginChild, _thing_walks, endChild, replace, over(1), replace, over(2) */`b/${_thing_walks}&%b%c`;
|
||||
export const $walks = /* over(1), <thing>, replace, over(1), replace, over(2) */`b/${_thing_walks}&%b%c`;
|
||||
import Thing from "./tags/thing.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
@ -10,26 +10,26 @@ const $inputshowsectionnull_content__setup = $scope => {
|
||||
_._var($scope, "#childScope/0", $inputshowsectionnull_content__setHtml);
|
||||
_child($scope["#childScope/0"]);
|
||||
};
|
||||
const $inputshowsectionnull_content = _._content_resume("__tests__/template.marko_4_content", _child_template, /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`, $inputshowsectionnull_content__setup, 0, "ClosureScopes:4");
|
||||
const $inputshowsectionnull_content = _._content_resume("__tests__/template.marko_4_content", _child_template, /* <child/var> */`0${_child_walks}&`, $inputshowsectionnull_content__setup, 0, "ClosureScopes:4");
|
||||
const $get$hoisted_setHtml2 = _._hoist("setHtml2", "ClosureScopes:3", "ClosureScopes:2");
|
||||
const $thing_content2__setHtml = _._var_resume("__tests__/template.marko_3_setHtml2/var", /* @__PURE__ */_._const("setHtml2", $scope => _._assert_hoist($scope.setHtml2)));
|
||||
const $thing_content2__setup = $scope => {
|
||||
_._var($scope, "#childScope/0", $thing_content2__setHtml);
|
||||
_child($scope["#childScope/0"]);
|
||||
};
|
||||
const $thing_content2 = /* @__PURE__ */_._content("__tests__/template.marko_3_content", _child_template, /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`, $thing_content2__setup, 0, "ClosureScopes:3");
|
||||
const $thing_content2 = /* @__PURE__ */_._content("__tests__/template.marko_3_content", _child_template, /* <child/var> */`0${_child_walks}&`, $thing_content2__setup, 0, "ClosureScopes:3");
|
||||
const $inputshowThingnull_content__setup = $scope => {
|
||||
_thing($scope["#childScope/0"]);
|
||||
_thing_input_content($scope["#childScope/0"], $thing_content2($scope));
|
||||
};
|
||||
const $inputshowThingnull_content = _._content_resume("__tests__/template.marko_2_content", `<!>${_thing_template}<!>`, /* over(1), beginChild, _thing_walks, endChild, over(1) */`b/${_thing_walks}&b`, $inputshowThingnull_content__setup, 0, "ClosureScopes:2");
|
||||
const $inputshowThingnull_content = _._content_resume("__tests__/template.marko_2_content", `<!>${_thing_template}<!>`, /* over(1), <thing>, over(1) */`b/${_thing_walks}&b`, $inputshowThingnull_content__setup, 0, "ClosureScopes:2");
|
||||
const $get$hoisted_setHtml3 = _._resume("__tests__/template.marko_0_$hoisted_setHtml/hoist", _._hoist("setHtml", "ClosureScopes:1"));
|
||||
const $thing_content__setHtml = _._var_resume("__tests__/template.marko_1_setHtml/var", /* @__PURE__ */_._const("setHtml", $scope => _._assert_hoist($scope.setHtml)));
|
||||
const $thing_content__setup = $scope => {
|
||||
_._var($scope, "#childScope/0", $thing_content__setHtml);
|
||||
_child($scope["#childScope/0"]);
|
||||
};
|
||||
const $thing_content = /* @__PURE__ */_._content("__tests__/template.marko_1_content", _child_template, /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`, $thing_content__setup, 0, "ClosureScopes:1");
|
||||
const $thing_content = /* @__PURE__ */_._content("__tests__/template.marko_1_content", _child_template, /* <child/var> */`0${_child_walks}&`, $thing_content__setup, 0, "ClosureScopes:1");
|
||||
const $hoisted_setHtml4__script = _._script("__tests__/template.marko_0_$hoisted_setHtml", $scope => {
|
||||
for (const fn of $scope.$hoisted_setHtml) {
|
||||
fn('Hoist from custom tag');
|
||||
|
||||
@ -8,7 +8,7 @@ const $for_content4__setup = $scope => {
|
||||
_._var($scope, "#childScope/0", $for_content4__setHtml);
|
||||
_child($scope["#childScope/0"]);
|
||||
};
|
||||
const $for_content3__for = /* @__PURE__ */_._for_to("#ul/0", _child_template, /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`, $for_content4__setup);
|
||||
const $for_content3__for = /* @__PURE__ */_._for_to("#ul/0", _child_template, /* <child/var> */`0${_child_walks}&`, $for_content4__setup);
|
||||
const $for_content3__setup = $scope => {
|
||||
$for_content3__for($scope, [3, 0, 1]);
|
||||
};
|
||||
@ -24,8 +24,8 @@ const $for_content__setup = $scope => {
|
||||
_._var($scope, "#childScope/0", $for_content__setHtml);
|
||||
_child($scope["#childScope/0"]);
|
||||
};
|
||||
const $for = /* @__PURE__ */_._for_to("#text/0", _child_template, /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`, $for_content__setup);
|
||||
const $for2 = /* @__PURE__ */_._for_to("#text/1", _child_template, /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`, $for_content2__setup);
|
||||
const $for = /* @__PURE__ */_._for_to("#text/0", _child_template, /* <child/var> */`0${_child_walks}&`, $for_content__setup);
|
||||
const $for2 = /* @__PURE__ */_._for_to("#text/1", _child_template, /* <child/var> */`0${_child_walks}&`, $for_content2__setup);
|
||||
const $to = /* @__PURE__ */_._let("to/3", $scope => $for2($scope, [$scope.to, 0, 1]));
|
||||
const $for3 = /* @__PURE__ */_._for_to("#text/2", "<ul></ul>", /* get, over(1) */" b", $for_content3__setup);
|
||||
const $hoisted_setHtml4__script = _._script("__tests__/template.marko_0_$hoisted_setHtml3", $scope => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_thing_template}${_child_template}`;
|
||||
export const $walks = /* beginChild, _thing_walks, endChild, beginChildWithVar, _child_walks, endChild */`/${_thing_walks}&0${_child_walks}&`;
|
||||
export const $walks = /* <thing>, <child/var> */`/${_thing_walks}&0${_child_walks}&`;
|
||||
import { $setup as _thing, $input_value as _thing_input_value, $template as _thing_template, $walks as _thing_walks } from "./tags/thing.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!><!>${_thing_template}<!><!><!><!>`;
|
||||
export const $walks = /* over(1), replace, over(1), beginChild, _thing_walks, endChild, replace, over(1), replace, over(1), replace, over(2) */`b%b/${_thing_walks}&%b%b%c`;
|
||||
export const $walks = /* over(1), replace, over(1), <thing>, replace, over(1), replace, over(1), replace, over(2) */`b%b/${_thing_walks}&%b%b%c`;
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
import { $setup as _child, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
import { $setup as _thing, $input_value as _thing_input_value, $template as _thing_template, $walks as _thing_walks } from "./tags/thing.marko";
|
||||
@ -23,7 +23,7 @@ const $if_content2__setup = $scope => {
|
||||
_._var($scope, "#childScope/0", $if_content2__setHtml);
|
||||
_child($scope["#childScope/0"]);
|
||||
};
|
||||
const $if_content__if = /* @__PURE__ */_._if("#text/0", _child_template, /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`, $if_content2__setup);
|
||||
const $if_content__if = /* @__PURE__ */_._if("#text/0", _child_template, /* <child/var> */`0${_child_walks}&`, $if_content2__setup);
|
||||
const $if_content__input_show = /* @__PURE__ */_._if_closure("#text/0", 0, $scope => $if_content__if($scope, $scope._.input_show ? 0 : 1));
|
||||
const $if_content__setup = $if_content__input_show;
|
||||
const $if = /* @__PURE__ */_._if("#text/0", "<!><!><!>", /* over(1), replace, over(2) */"b%c", $if_content__setup);
|
||||
@ -31,8 +31,8 @@ export const $input_show = /* @__PURE__ */_._const("input_show", $scope => {
|
||||
$if($scope, $scope.input_show ? 0 : 1);
|
||||
$if_content__input_show($scope);
|
||||
});
|
||||
const $if2 = /* @__PURE__ */_._if("#text/2", _child_template, /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`, $if_content3__setup);
|
||||
const $if3 = /* @__PURE__ */_._if("#text/3", _child_template, /* beginChildWithVar, _child_walks, endChild */`0${_child_walks}&`, $if_content4__setup);
|
||||
const $if2 = /* @__PURE__ */_._if("#text/2", _child_template, /* <child/var> */`0${_child_walks}&`, $if_content3__setup);
|
||||
const $if3 = /* @__PURE__ */_._if("#text/3", _child_template, /* <child/var> */`0${_child_walks}&`, $if_content4__setup);
|
||||
const $if4 = /* @__PURE__ */_._if("#text/4", 0, 0, $if_content5__setup);
|
||||
const $hoisted_setHtml4 = /* @__PURE__ */_._const("$hoisted_setHtml", $scope => _thing_input_value($scope["#childScope/1"], $scope.$hoisted_setHtml));
|
||||
const $setup__script = _._script("__tests__/template.marko_0", $scope => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_thing_template}<!><!><!>`;
|
||||
export const $walks = /* over(1), beginChild, _thing_walks, endChild, replace, over(1), replace, over(2) */`b/${_thing_walks}&%b%c`;
|
||||
export const $walks = /* over(1), <thing>, replace, over(1), replace, over(2) */`b/${_thing_walks}&%b%c`;
|
||||
import Child from "./tags/child.marko";
|
||||
import Thing from "./tags/thing.marko";
|
||||
import { $setup as _thing, $input_content as _thing_input_content, $template as _thing_template, $walks as _thing_walks } from "./tags/thing.marko";
|
||||
@ -22,7 +22,7 @@ const $inputshowThingnull_content__setup = $scope => {
|
||||
_thing($scope["#childScope/0"]);
|
||||
_thing_input_content($scope["#childScope/0"], $thing_content2($scope));
|
||||
};
|
||||
const $inputshowThingnull_content = _._content_resume("__tests__/template.marko_2_content", `<!>${_thing_template}<!>`, /* over(1), beginChild, _thing_walks, endChild, over(1) */`b/${_thing_walks}&b`, $inputshowThingnull_content__setup, 0, "ClosureScopes:2");
|
||||
const $inputshowThingnull_content = _._content_resume("__tests__/template.marko_2_content", `<!>${_thing_template}<!>`, /* over(1), <thing>, over(1) */`b/${_thing_walks}&b`, $inputshowThingnull_content__setup, 0, "ClosureScopes:2");
|
||||
const $get$hoisted_setHtml3 = _._resume("__tests__/template.marko_0_$hoisted_setHtml/hoist", _._hoist("setHtml", "ClosureScopes:1"));
|
||||
const $thing_content__dynamicTag = /* @__PURE__ */_._dynamic_tag("#text/0", 0, () => $thing_content__setHtml);
|
||||
const $thing_content__setHtml = _._var_resume("__tests__/template.marko_1_setHtml/var", /* @__PURE__ */_._const("setHtml", $scope => _._assert_hoist($scope.setHtml)));
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!><!>${_thing_template}<!><!><!><!>`;
|
||||
export const $walks = /* over(1), replace, over(1), beginChild, _thing_walks, endChild, replace, over(1), replace, over(1), replace, over(2) */`b%b/${_thing_walks}&%b%b%c`;
|
||||
export const $walks = /* over(1), replace, over(1), <thing>, replace, over(1), replace, over(1), replace, over(2) */`b%b/${_thing_walks}&%b%b%c`;
|
||||
import Child from "./tags/child.marko";
|
||||
import { $setup as _thing, $input_value as _thing_input_value, $template as _thing_template, $walks as _thing_walks } from "./tags/thing.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = _child_template;
|
||||
export const $walks = /* beginChild, _child_walks, endChild */`/${_child_walks}&`;
|
||||
export const $walks = /* <child> */`/${_child_walks}&`;
|
||||
import { $setup as _child, $input_fn as _child_input_fn, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $get$hoisted_x = _._hoist("x");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!>${_child_template}<!><!><!>`;
|
||||
export const $walks = /* over(1), beginChild, _child_walks, endChild, replace, over(1), replace, over(2) */`b/${_child_walks}&%b%c`;
|
||||
export const $walks = /* over(1), <child>, replace, over(1), replace, over(2) */`b/${_child_walks}&%b%c`;
|
||||
import Child from "./tags/child.marko";
|
||||
import { $setup as _child, $input_content as _child_input_content, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
@ -19,7 +19,7 @@ const $inputshowChildnull_content__setup = $scope => {
|
||||
_child_input_content($scope["#childScope/0"], $child_content2($scope));
|
||||
$inputshowChildnull_content__$hoisted_el($scope, $get$hoisted_el2($scope));
|
||||
};
|
||||
const $inputshowChildnull_content = _._content_resume("__tests__/template.marko_2_content", `<!>${_child_template}<!>`, /* over(1), beginChild, _child_walks, endChild, over(1) */`b/${_child_walks}&b`, $inputshowChildnull_content__setup, 0, "ClosureScopes:2");
|
||||
const $inputshowChildnull_content = _._content_resume("__tests__/template.marko_2_content", `<!>${_child_template}<!>`, /* over(1), <child>, over(1) */`b/${_child_walks}&b`, $inputshowChildnull_content__setup, 0, "ClosureScopes:2");
|
||||
const $get$hoisted_el4 = _._resume("__tests__/template.marko_0_$hoisted_el/hoist", _._hoist("Getter:#span/0", "ClosureScopes:1"));
|
||||
const $child_content = /* @__PURE__ */_._content("__tests__/template.marko_1_content", "<span></span>", /* get, over(1) */" b", 0, 0, "ClosureScopes:1");
|
||||
const $hoisted_el6__script = _._script("__tests__/template.marko_0_$hoisted_el3", $scope => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `${_child_template}<div></div>${_child_template}`;
|
||||
export const $walks = /* beginChild, _child_walks, endChild, get, over(1), beginChild, _child_walks, endChild */`/${_child_walks}& b/${_child_walks}&`;
|
||||
export const $walks = /* <child>, get, over(1), <child> */`/${_child_walks}& b/${_child_walks}&`;
|
||||
import { $setup as _child, $input as _child_input, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $getdiv = _._el("__tests__/template.marko_0/#div", "#div/1");
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
export const $template = `<!><!>${_child_template}<hr><!><!>`;
|
||||
export const $walks = /* over(1), replace, over(1), beginChild, _child_walks, endChild, over(1), replace, over(2) */`b%b/${_child_walks}&b%c`;
|
||||
export const $walks = /* over(1), replace, over(1), <child>, over(1), replace, over(2) */`b%b/${_child_walks}&b%c`;
|
||||
import { $setup as _child, $input as _child_input, $template as _child_template, $walks as _child_walks } from "./tags/child.marko";
|
||||
import * as _ from "@marko/runtime-tags/debug/dom";
|
||||
const $get$hoisted_el = _._hoist("Getter:#div/0", "BranchScopes:#text/2");
|
||||
@ -11,7 +11,7 @@ const $if_content2__setup = $scope => {
|
||||
value: $getdiv($scope)
|
||||
});
|
||||
};
|
||||
const $if_content__if = /* @__PURE__ */_._if("#text/0", `<div></div>${_child_template}`, /* get, over(1), beginChild, _child_walks, endChild */` b/${_child_walks}&`, $if_content2__setup);
|
||||
const $if_content__if = /* @__PURE__ */_._if("#text/0", `<div></div>${_child_template}`, /* get, over(1), <child> */` b/${_child_walks}&`, $if_content2__setup);
|
||||
const $if_content__input_show = /* @__PURE__ */_._if_closure("#text/0", 0, $scope => $if_content__if($scope, $scope._.input_show ? 0 : 1));
|
||||
const $if_content__setup = $if_content__input_show;
|
||||
const $if = /* @__PURE__ */_._if("#text/0", "<!><!><!>", /* over(1), replace, over(2) */"b%c", $if_content__setup);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user