|
| 1 | +// tags/sections.marko |
| 2 | +var sections_default = _template("__tests__/tags/sections.marko", (input) => { |
| 3 | + const $scope0_reason = _scope_reason(), $sg__input_section = _serialize_guard($scope0_reason, 0), $si__input_section = _serialize_if($scope0_reason, 0); |
| 4 | + const $scope0_id = _scope_id(); |
| 5 | + _for_of(input.section, ({ content }) => { |
| 6 | + const $scope1_id = _scope_id(); |
| 7 | + _if(() => { |
| 8 | + if (content) { |
| 9 | + const $scope2_id = _scope_id(); |
| 10 | + _dynamic_tag($scope2_id, "#text/0", content, {}, 0, 0, $sg__input_section); |
| 11 | + $si__input_section && writeScope($scope2_id, { _: _scope_with_id($scope1_id) }, "__tests__/tags/sections.marko", "2:4"); |
| 12 | + return 0; |
| 13 | + } |
| 14 | + }, $scope1_id, "#text/0", $sg__input_section, $sg__input_section, $sg__input_section); |
| 15 | + $si__input_section && writeScope($scope1_id, { content }, "__tests__/tags/sections.marko", "1:2", { content: "1:8" }); |
| 16 | + }, 0, $scope0_id, "#text/0", $sg__input_section, $sg__input_section, $sg__input_section); |
| 17 | + $si__input_section && writeScope($scope0_id, {}, "__tests__/tags/sections.marko", 0); |
| 18 | +}); |
| 19 | + |
| 20 | +// template.marko |
| 21 | +var template_default = _template("__tests__/template.marko", (input) => { |
| 22 | + const $scope0_reason = _scope_reason(); |
| 23 | + const $scope0_id = _scope_id(); |
| 24 | + const $count__closures = new Set(); |
| 25 | + let count = 0; |
| 26 | + const $childScope = _peek_scope_id(); |
| 27 | + _set_serialize_reason(1); |
| 28 | + sections_default({ section: attrTag({ |
| 29 | + onClick: _resume(function() { |
| 30 | + count++; |
| 31 | + }, "__tests__/template.marko_0/onClick", $scope0_id), |
| 32 | + content: _content_resume("__tests__/template.marko_1_content", () => { |
| 33 | + _scope_reason(); |
| 34 | + const $scope1_id = _scope_id(); |
| 35 | + _html(`${_escape(count)}${_el_resume($scope1_id, "#text/0")}`); |
| 36 | + _subscribe($count__closures, writeScope($scope1_id, { _: _scope_with_id($scope0_id) }, "__tests__/template.marko", "3:4")); |
| 37 | + _resume_branch($scope1_id); |
| 38 | + }, $scope0_id) |
| 39 | + }) }); |
| 40 | + writeScope($scope0_id, { |
| 41 | + count, |
| 42 | + "ClosureScopes:count": $count__closures, |
| 43 | + "#childScope/0": _existing_scope($childScope) |
| 44 | + }, "__tests__/template.marko", 0, { count: "1:6" }); |
| 45 | + _resume_branch($scope0_id); |
| 46 | +}, 1); |
0 commit comments