ripple 0.3.11 → 0.3.13

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.
Files changed (190) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/package.json +8 -2
  3. package/src/compiler/phases/1-parse/index.js +73 -30
  4. package/src/compiler/phases/2-analyze/index.js +28 -58
  5. package/src/compiler/phases/3-transform/client/index.js +127 -164
  6. package/src/compiler/phases/3-transform/segments.js +4 -8
  7. package/src/compiler/phases/3-transform/server/index.js +210 -360
  8. package/src/compiler/types/import.d.ts +0 -12
  9. package/src/compiler/types/index.d.ts +12 -5
  10. package/src/compiler/types/parse.d.ts +2 -0
  11. package/src/compiler/utils.js +39 -44
  12. package/src/helpers.d.ts +2 -0
  13. package/src/runtime/index-client.js +15 -13
  14. package/src/runtime/index-server.js +18 -11
  15. package/src/runtime/internal/client/blocks.js +19 -23
  16. package/src/runtime/internal/client/constants.js +20 -9
  17. package/src/runtime/internal/client/index.js +14 -4
  18. package/src/runtime/internal/client/runtime.js +435 -173
  19. package/src/runtime/internal/client/try.js +334 -156
  20. package/src/runtime/internal/client/types.d.ts +26 -0
  21. package/src/runtime/internal/server/blocks.js +183 -0
  22. package/src/runtime/internal/server/constants.js +7 -0
  23. package/src/runtime/internal/server/index.js +780 -148
  24. package/src/runtime/internal/server/types.d.ts +35 -0
  25. package/src/server/index.js +1 -1
  26. package/src/utils/async.js +35 -0
  27. package/src/utils/builders.js +3 -1
  28. package/tests/client/__snapshots__/computed-properties.test.rsrx.snap +49 -0
  29. package/tests/client/__snapshots__/for.test.rsrx.snap +319 -0
  30. package/tests/client/__snapshots__/html.test.rsrx.snap +40 -0
  31. package/tests/client/_etc.test.rsrx +7 -0
  32. package/tests/client/array/{array.static.test.ripple → array.static.test.rsrx} +18 -20
  33. package/tests/client/async-suspend.test.rsrx +662 -0
  34. package/tests/client/basic/__snapshots__/basic.attributes.test.rsrx.snap +60 -0
  35. package/tests/client/basic/__snapshots__/basic.rendering.test.rsrx.snap +59 -0
  36. package/tests/client/basic/{basic.errors.test.ripple → basic.errors.test.rsrx} +2 -2
  37. package/tests/client/compiler/__snapshots__/compiler.assignments.test.rsrx.snap +12 -0
  38. package/tests/client/compiler/__snapshots__/compiler.typescript.test.rsrx.snap +46 -0
  39. package/tests/client/compiler/{compiler.try-in-function.test.ripple → compiler.try-in-function.test.rsrx} +8 -6
  40. package/tests/client/composite/__snapshots__/composite.render.test.rsrx.snap +37 -0
  41. package/tests/client/{function-overload.test.ripple → function-overload.test.rsrx} +1 -1
  42. package/tests/client/try.test.rsrx +1702 -0
  43. package/tests/hydration/build-components.js +5 -3
  44. package/tests/hydration/compiled/client/head.js +11 -11
  45. package/tests/hydration/compiled/client/mixed-control-flow.js +55 -70
  46. package/tests/hydration/compiled/client/nested-control-flow.js +72 -88
  47. package/tests/hydration/compiled/client/try.js +42 -54
  48. package/tests/hydration/compiled/server/basic.js +491 -369
  49. package/tests/hydration/compiled/server/composite.js +153 -128
  50. package/tests/hydration/compiled/server/events.js +166 -145
  51. package/tests/hydration/compiled/server/for.js +821 -677
  52. package/tests/hydration/compiled/server/head.js +200 -165
  53. package/tests/hydration/compiled/server/hmr.js +62 -54
  54. package/tests/hydration/compiled/server/html-in-template.js +64 -55
  55. package/tests/hydration/compiled/server/html.js +1477 -1360
  56. package/tests/hydration/compiled/server/if-children.js +448 -408
  57. package/tests/hydration/compiled/server/if.js +204 -171
  58. package/tests/hydration/compiled/server/mixed-control-flow.js +237 -195
  59. package/tests/hydration/compiled/server/nested-control-flow.js +533 -467
  60. package/tests/hydration/compiled/server/portal.js +94 -107
  61. package/tests/hydration/compiled/server/reactivity.js +87 -64
  62. package/tests/hydration/compiled/server/return.js +1424 -1174
  63. package/tests/hydration/compiled/server/switch.js +268 -238
  64. package/tests/hydration/compiled/server/try.js +98 -87
  65. package/tests/hydration/components/{mixed-control-flow.ripple → mixed-control-flow.rsrx} +2 -2
  66. package/tests/hydration/components/{try.ripple → try.rsrx} +4 -2
  67. package/tests/hydration/mixed-control-flow.test.js +14 -0
  68. package/tests/hydration/nested-control-flow.test.js +50 -48
  69. package/tests/hydration/try.test.js +25 -0
  70. package/tests/server/__snapshots__/compiler.test.ripple.snap +0 -32
  71. package/tests/server/__snapshots__/compiler.test.rsrx.snap +95 -0
  72. package/tests/server/{compiler.test.ripple → compiler.test.rsrx} +0 -17
  73. package/tests/server/{html-nesting-validation.test.ripple → html-nesting-validation.test.rsrx} +3 -3
  74. package/tests/server/streaming-ssr.test.rsrx +115 -0
  75. package/tests/server/try.test.rsrx +503 -0
  76. package/tests/utils/compiler-compat-config.test.js +3 -3
  77. package/tests/utils/vite-plugin-config.test.js +1 -1
  78. package/tests/utils/vite-plugin-hmr.test.js +5 -5
  79. package/tsconfig.json +4 -0
  80. package/types/index.d.ts +13 -23
  81. package/types/server.d.ts +43 -16
  82. package/tests/client/_etc.test.ripple +0 -5
  83. package/tests/client/async-suspend.test.ripple +0 -94
  84. package/tests/client/try.test.ripple +0 -196
  85. package/tests/server/streaming-ssr.test.ripple +0 -68
  86. package/tests/server/try.test.ripple +0 -82
  87. /package/tests/client/array/{array.copy-within.test.ripple → array.copy-within.test.rsrx} +0 -0
  88. /package/tests/client/array/{array.derived.test.ripple → array.derived.test.rsrx} +0 -0
  89. /package/tests/client/array/{array.iteration.test.ripple → array.iteration.test.rsrx} +0 -0
  90. /package/tests/client/array/{array.mutations.test.ripple → array.mutations.test.rsrx} +0 -0
  91. /package/tests/client/array/{array.to-methods.test.ripple → array.to-methods.test.rsrx} +0 -0
  92. /package/tests/client/basic/{basic.attributes.test.ripple → basic.attributes.test.rsrx} +0 -0
  93. /package/tests/client/basic/{basic.collections.test.ripple → basic.collections.test.rsrx} +0 -0
  94. /package/tests/client/basic/{basic.components.test.ripple → basic.components.test.rsrx} +0 -0
  95. /package/tests/client/basic/{basic.events.test.ripple → basic.events.test.rsrx} +0 -0
  96. /package/tests/client/basic/{basic.get-set.test.ripple → basic.get-set.test.rsrx} +0 -0
  97. /package/tests/client/basic/{basic.hmr.test.ripple → basic.hmr.test.rsrx} +0 -0
  98. /package/tests/client/basic/{basic.reactivity.test.ripple → basic.reactivity.test.rsrx} +0 -0
  99. /package/tests/client/basic/{basic.rendering.test.ripple → basic.rendering.test.rsrx} +0 -0
  100. /package/tests/client/basic/{basic.styling.test.ripple → basic.styling.test.rsrx} +0 -0
  101. /package/tests/client/basic/{basic.utilities.test.ripple → basic.utilities.test.rsrx} +0 -0
  102. /package/tests/client/{boundaries.test.ripple → boundaries.test.rsrx} +0 -0
  103. /package/tests/client/compiler/{compiler.assignments.test.ripple → compiler.assignments.test.rsrx} +0 -0
  104. /package/tests/client/compiler/{compiler.attributes.test.ripple → compiler.attributes.test.rsrx} +0 -0
  105. /package/tests/client/compiler/{compiler.basic.test.ripple → compiler.basic.test.rsrx} +0 -0
  106. /package/tests/client/compiler/{compiler.regex.test.ripple → compiler.regex.test.rsrx} +0 -0
  107. /package/tests/client/compiler/{compiler.tracked-access.test.ripple → compiler.tracked-access.test.rsrx} +0 -0
  108. /package/tests/client/compiler/{compiler.typescript.test.ripple → compiler.typescript.test.rsrx} +0 -0
  109. /package/tests/client/composite/{composite.dynamic-components.test.ripple → composite.dynamic-components.test.rsrx} +0 -0
  110. /package/tests/client/composite/{composite.generics.test.ripple → composite.generics.test.rsrx} +0 -0
  111. /package/tests/client/composite/{composite.props.test.ripple → composite.props.test.rsrx} +0 -0
  112. /package/tests/client/composite/{composite.reactivity.test.ripple → composite.reactivity.test.rsrx} +0 -0
  113. /package/tests/client/composite/{composite.render.test.ripple → composite.render.test.rsrx} +0 -0
  114. /package/tests/client/{computed-properties.test.ripple → computed-properties.test.rsrx} +0 -0
  115. /package/tests/client/{context.test.ripple → context.test.rsrx} +0 -0
  116. /package/tests/client/css/{global-additional-cases.test.ripple → global-additional-cases.test.rsrx} +0 -0
  117. /package/tests/client/css/{global-advanced-selectors.test.ripple → global-advanced-selectors.test.rsrx} +0 -0
  118. /package/tests/client/css/{global-at-rules.test.ripple → global-at-rules.test.rsrx} +0 -0
  119. /package/tests/client/css/{global-basic.test.ripple → global-basic.test.rsrx} +0 -0
  120. /package/tests/client/css/{global-classes-ids.test.ripple → global-classes-ids.test.rsrx} +0 -0
  121. /package/tests/client/css/{global-combinators.test.ripple → global-combinators.test.rsrx} +0 -0
  122. /package/tests/client/css/{global-complex-nesting.test.ripple → global-complex-nesting.test.rsrx} +0 -0
  123. /package/tests/client/css/{global-edge-cases.test.ripple → global-edge-cases.test.rsrx} +0 -0
  124. /package/tests/client/css/{global-keyframes.test.ripple → global-keyframes.test.rsrx} +0 -0
  125. /package/tests/client/css/{global-nested.test.ripple → global-nested.test.rsrx} +0 -0
  126. /package/tests/client/css/{global-pseudo.test.ripple → global-pseudo.test.rsrx} +0 -0
  127. /package/tests/client/css/{global-scoping.test.ripple → global-scoping.test.rsrx} +0 -0
  128. /package/tests/client/css/{style-identifier.test.ripple → style-identifier.test.rsrx} +0 -0
  129. /package/tests/client/{date.test.ripple → date.test.rsrx} +0 -0
  130. /package/tests/client/{dynamic-elements.test.ripple → dynamic-elements.test.rsrx} +0 -0
  131. /package/tests/client/{events.test.ripple → events.test.rsrx} +0 -0
  132. /package/tests/client/{for.test.ripple → for.test.rsrx} +0 -0
  133. /package/tests/client/{function-overload-import.ripple → function-overload-import.rsrx} +0 -0
  134. /package/tests/client/{head.test.ripple → head.test.rsrx} +0 -0
  135. /package/tests/client/{html.test.ripple → html.test.rsrx} +0 -0
  136. /package/tests/client/{input-value.test.ripple → input-value.test.rsrx} +0 -0
  137. /package/tests/client/{lazy-destructuring.test.ripple → lazy-destructuring.test.rsrx} +0 -0
  138. /package/tests/client/{map.test.ripple → map.test.rsrx} +0 -0
  139. /package/tests/client/{media-query.test.ripple → media-query.test.rsrx} +0 -0
  140. /package/tests/client/{object.test.ripple → object.test.rsrx} +0 -0
  141. /package/tests/client/{portal.test.ripple → portal.test.rsrx} +0 -0
  142. /package/tests/client/{ref.test.ripple → ref.test.rsrx} +0 -0
  143. /package/tests/client/{return.test.ripple → return.test.rsrx} +0 -0
  144. /package/tests/client/{set.test.ripple → set.test.rsrx} +0 -0
  145. /package/tests/client/{svg.test.ripple → svg.test.rsrx} +0 -0
  146. /package/tests/client/{switch.test.ripple → switch.test.rsrx} +0 -0
  147. /package/tests/client/{tsx.test.ripple → tsx.test.rsrx} +0 -0
  148. /package/tests/client/{typescript-generics.test.ripple → typescript-generics.test.rsrx} +0 -0
  149. /package/tests/client/url/{url.derived.test.ripple → url.derived.test.rsrx} +0 -0
  150. /package/tests/client/url/{url.parsing.test.ripple → url.parsing.test.rsrx} +0 -0
  151. /package/tests/client/url/{url.partial-removal.test.ripple → url.partial-removal.test.rsrx} +0 -0
  152. /package/tests/client/url/{url.reactivity.test.ripple → url.reactivity.test.rsrx} +0 -0
  153. /package/tests/client/url/{url.serialization.test.ripple → url.serialization.test.rsrx} +0 -0
  154. /package/tests/client/url-search-params/{url-search-params.derived.test.ripple → url-search-params.derived.test.rsrx} +0 -0
  155. /package/tests/client/url-search-params/{url-search-params.initialization.test.ripple → url-search-params.initialization.test.rsrx} +0 -0
  156. /package/tests/client/url-search-params/{url-search-params.iteration.test.ripple → url-search-params.iteration.test.rsrx} +0 -0
  157. /package/tests/client/url-search-params/{url-search-params.mutation.test.ripple → url-search-params.mutation.test.rsrx} +0 -0
  158. /package/tests/client/url-search-params/{url-search-params.retrieval.test.ripple → url-search-params.retrieval.test.rsrx} +0 -0
  159. /package/tests/client/url-search-params/{url-search-params.serialization.test.ripple → url-search-params.serialization.test.rsrx} +0 -0
  160. /package/tests/client/url-search-params/{url-search-params.tracked-url.test.ripple → url-search-params.tracked-url.test.rsrx} +0 -0
  161. /package/tests/hydration/components/{basic.ripple → basic.rsrx} +0 -0
  162. /package/tests/hydration/components/{composite.ripple → composite.rsrx} +0 -0
  163. /package/tests/hydration/components/{events.ripple → events.rsrx} +0 -0
  164. /package/tests/hydration/components/{for.ripple → for.rsrx} +0 -0
  165. /package/tests/hydration/components/{head.ripple → head.rsrx} +0 -0
  166. /package/tests/hydration/components/{hmr.ripple → hmr.rsrx} +0 -0
  167. /package/tests/hydration/components/{html-in-template.ripple → html-in-template.rsrx} +0 -0
  168. /package/tests/hydration/components/{html.ripple → html.rsrx} +0 -0
  169. /package/tests/hydration/components/{if-children.ripple → if-children.rsrx} +0 -0
  170. /package/tests/hydration/components/{if.ripple → if.rsrx} +0 -0
  171. /package/tests/hydration/components/{nested-control-flow.ripple → nested-control-flow.rsrx} +0 -0
  172. /package/tests/hydration/components/{portal.ripple → portal.rsrx} +0 -0
  173. /package/tests/hydration/components/{reactivity.ripple → reactivity.rsrx} +0 -0
  174. /package/tests/hydration/components/{return.ripple → return.rsrx} +0 -0
  175. /package/tests/hydration/components/{switch.ripple → switch.rsrx} +0 -0
  176. /package/tests/server/{await.test.ripple → await.test.rsrx} +0 -0
  177. /package/tests/server/{basic.attributes.test.ripple → basic.attributes.test.rsrx} +0 -0
  178. /package/tests/server/{basic.components.test.ripple → basic.components.test.rsrx} +0 -0
  179. /package/tests/server/{basic.test.ripple → basic.test.rsrx} +0 -0
  180. /package/tests/server/{composite.props.test.ripple → composite.props.test.rsrx} +0 -0
  181. /package/tests/server/{composite.test.ripple → composite.test.rsrx} +0 -0
  182. /package/tests/server/{context.test.ripple → context.test.rsrx} +0 -0
  183. /package/tests/server/{dynamic-elements.test.ripple → dynamic-elements.test.rsrx} +0 -0
  184. /package/tests/server/{for.test.ripple → for.test.rsrx} +0 -0
  185. /package/tests/server/{head.test.ripple → head.test.rsrx} +0 -0
  186. /package/tests/server/{if.test.ripple → if.test.rsrx} +0 -0
  187. /package/tests/server/{lazy-destructuring.test.ripple → lazy-destructuring.test.rsrx} +0 -0
  188. /package/tests/server/{return.test.ripple → return.test.rsrx} +0 -0
  189. /package/tests/server/{style-identifier.test.ripple → style-identifier.test.rsrx} +0 -0
  190. /package/tests/server/{switch.test.ripple → switch.test.rsrx} +0 -0
@@ -3,1722 +3,1822 @@ import * as _$_ from 'ripple/internal/server';
3
3
 
4
4
  import { track } from 'ripple/server';
5
5
 
6
- export function StaticHtml(__output) {
6
+ export function StaticHtml() {
7
7
  _$_.push_component();
8
8
 
9
9
  const html = '<p><strong>Bold</strong> text</p>';
10
10
 
11
- __output.push('<div');
12
- __output.push('>');
11
+ _$_.regular_block(() => {
12
+ _$_.output_push('<div');
13
+ _$_.output_push('>');
13
14
 
14
- {
15
- const html_value = String(html ?? '');
15
+ {
16
+ const html_value = String(html ?? '');
16
17
 
17
- __output.push('<!--' + _$_.hash(html_value) + '-->');
18
- __output.push(html_value);
19
- __output.push('<!---->');
20
- }
18
+ _$_.output_push('<!--' + _$_.hash(html_value) + '-->');
19
+ _$_.output_push(html_value);
20
+ _$_.output_push('<!---->');
21
+ }
22
+
23
+ _$_.output_push('</div>');
24
+ });
21
25
 
22
- __output.push('</div>');
23
26
  _$_.pop_component();
24
27
  }
25
28
 
26
- export function DynamicHtml(__output) {
29
+ export function DynamicHtml() {
27
30
  _$_.push_component();
28
31
 
29
32
  const content = '<p>Dynamic <span>HTML</span> content</p>';
30
33
 
31
- __output.push('<div');
32
- __output.push('>');
34
+ _$_.regular_block(() => {
35
+ _$_.output_push('<div');
36
+ _$_.output_push('>');
33
37
 
34
- {
35
- const html_value_1 = String(content ?? '');
38
+ {
39
+ const html_value_1 = String(content ?? '');
36
40
 
37
- __output.push('<!--' + _$_.hash(html_value_1) + '-->');
38
- __output.push(html_value_1);
39
- __output.push('<!---->');
40
- }
41
+ _$_.output_push('<!--' + _$_.hash(html_value_1) + '-->');
42
+ _$_.output_push(html_value_1);
43
+ _$_.output_push('<!---->');
44
+ }
45
+
46
+ _$_.output_push('</div>');
47
+ });
41
48
 
42
- __output.push('</div>');
43
49
  _$_.pop_component();
44
50
  }
45
51
 
46
- export function EmptyHtml(__output) {
52
+ export function EmptyHtml() {
47
53
  _$_.push_component();
48
54
 
49
55
  const html = '';
50
56
 
51
- __output.push('<div');
52
- __output.push('>');
57
+ _$_.regular_block(() => {
58
+ _$_.output_push('<div');
59
+ _$_.output_push('>');
53
60
 
54
- {
55
- const html_value_2 = String(html ?? '');
61
+ {
62
+ const html_value_2 = String(html ?? '');
56
63
 
57
- __output.push('<!--' + _$_.hash(html_value_2) + '-->');
58
- __output.push(html_value_2);
59
- __output.push('<!---->');
60
- }
64
+ _$_.output_push('<!--' + _$_.hash(html_value_2) + '-->');
65
+ _$_.output_push(html_value_2);
66
+ _$_.output_push('<!---->');
67
+ }
68
+
69
+ _$_.output_push('</div>');
70
+ });
61
71
 
62
- __output.push('</div>');
63
72
  _$_.pop_component();
64
73
  }
65
74
 
66
- export function ComplexHtml(__output) {
75
+ export function ComplexHtml() {
67
76
  _$_.push_component();
68
77
 
69
78
  const html = '<div class="nested"><span>Nested <em>content</em></span></div>';
70
79
 
71
- __output.push('<section');
72
- __output.push('>');
80
+ _$_.regular_block(() => {
81
+ _$_.output_push('<section');
82
+ _$_.output_push('>');
73
83
 
74
- {
75
- const html_value_3 = String(html ?? '');
84
+ {
85
+ const html_value_3 = String(html ?? '');
76
86
 
77
- __output.push('<!--' + _$_.hash(html_value_3) + '-->');
78
- __output.push(html_value_3);
79
- __output.push('<!---->');
80
- }
87
+ _$_.output_push('<!--' + _$_.hash(html_value_3) + '-->');
88
+ _$_.output_push(html_value_3);
89
+ _$_.output_push('<!---->');
90
+ }
91
+
92
+ _$_.output_push('</section>');
93
+ });
81
94
 
82
- __output.push('</section>');
83
95
  _$_.pop_component();
84
96
  }
85
97
 
86
- export function MultipleHtml(__output) {
98
+ export function MultipleHtml() {
87
99
  _$_.push_component();
88
100
 
89
101
  const html1 = '<p>First paragraph</p>';
90
102
  const html2 = '<p>Second paragraph</p>';
91
103
 
92
- __output.push('<div');
93
- __output.push('>');
104
+ _$_.regular_block(() => {
105
+ _$_.output_push('<div');
106
+ _$_.output_push('>');
94
107
 
95
- {
96
- const html_value_4 = String(html1 ?? '');
108
+ {
109
+ const html_value_4 = String(html1 ?? '');
97
110
 
98
- __output.push('<!--' + _$_.hash(html_value_4) + '-->');
99
- __output.push(html_value_4);
100
- __output.push('<!---->');
111
+ _$_.output_push('<!--' + _$_.hash(html_value_4) + '-->');
112
+ _$_.output_push(html_value_4);
113
+ _$_.output_push('<!---->');
101
114
 
102
- const html_value_5 = String(html2 ?? '');
115
+ const html_value_5 = String(html2 ?? '');
103
116
 
104
- __output.push('<!--' + _$_.hash(html_value_5) + '-->');
105
- __output.push(html_value_5);
106
- __output.push('<!---->');
107
- }
117
+ _$_.output_push('<!--' + _$_.hash(html_value_5) + '-->');
118
+ _$_.output_push(html_value_5);
119
+ _$_.output_push('<!---->');
120
+ }
121
+
122
+ _$_.output_push('</div>');
123
+ });
108
124
 
109
- __output.push('</div>');
110
125
  _$_.pop_component();
111
126
  }
112
127
 
113
- export function HtmlWithReactivity(__output) {
128
+ export function HtmlWithReactivity() {
114
129
  _$_.push_component();
115
- __output.push('<div');
116
- __output.push('>');
117
130
 
118
- {
119
- __output.push('<!--1tb17hh-->');
120
- __output.push('<p>Count: 0</p>');
121
- __output.push('<!---->');
122
- __output.push('<button');
123
- __output.push('>');
131
+ _$_.regular_block(() => {
132
+ _$_.output_push('<div');
133
+ _$_.output_push('>');
124
134
 
125
135
  {
126
- __output.push('Increment');
136
+ _$_.output_push('<!--1tb17hh-->');
137
+ _$_.output_push('<p>Count: 0</p>');
138
+ _$_.output_push('<!---->');
139
+ _$_.output_push('<button');
140
+ _$_.output_push('>');
141
+
142
+ {
143
+ _$_.output_push('Increment');
144
+ }
145
+
146
+ _$_.output_push('</button>');
127
147
  }
128
148
 
129
- __output.push('</button>');
130
- }
149
+ _$_.output_push('</div>');
150
+ });
131
151
 
132
- __output.push('</div>');
133
152
  _$_.pop_component();
134
153
  }
135
154
 
136
- export function HtmlWrapper(__output, { children }) {
155
+ export function HtmlWrapper({ children }) {
137
156
  _$_.push_component();
138
- __output.push('<div');
139
- __output.push(' class="wrapper"');
140
- __output.push('>');
141
157
 
142
- {
143
- __output.push('<div');
144
- __output.push(' class="inner"');
145
- __output.push('>');
158
+ _$_.regular_block(() => {
159
+ _$_.output_push('<div');
160
+ _$_.output_push(' class="wrapper"');
161
+ _$_.output_push('>');
146
162
 
147
163
  {
148
- _$_.render_expression(__output, children);
164
+ _$_.output_push('<div');
165
+ _$_.output_push(' class="inner"');
166
+ _$_.output_push('>');
167
+
168
+ {
169
+ _$_.render_expression(children);
170
+ }
171
+
172
+ _$_.output_push('</div>');
149
173
  }
150
174
 
151
- __output.push('</div>');
152
- }
175
+ _$_.output_push('</div>');
176
+ });
153
177
 
154
- __output.push('</div>');
155
178
  _$_.pop_component();
156
179
  }
157
180
 
158
- export function HtmlInChildren(__output) {
181
+ export function HtmlInChildren() {
159
182
  _$_.push_component();
160
183
 
161
184
  const content = '<p><strong>Bold</strong> text</p>';
162
185
 
163
- {
164
- const comp = HtmlWrapper;
186
+ _$_.regular_block(() => {
187
+ {
188
+ const comp = HtmlWrapper;
165
189
 
166
- const args = [
167
- __output,
168
- {
169
- children: _$_.ripple_element(function render_children(__output) {
170
- _$_.push_component();
171
- __output.push('<div');
172
- __output.push(' class="vp-doc"');
173
- __output.push('>');
190
+ const args = [
191
+ {
192
+ children: _$_.ripple_element(function render_children() {
193
+ _$_.push_component();
194
+ _$_.output_push('<div');
195
+ _$_.output_push(' class="vp-doc"');
196
+ _$_.output_push('>');
174
197
 
175
- {
176
- const html_value_6 = String(content ?? '');
198
+ {
199
+ const html_value_6 = String(content ?? '');
177
200
 
178
- __output.push('<!--' + _$_.hash(html_value_6) + '-->');
179
- __output.push(html_value_6);
180
- __output.push('<!---->');
181
- }
201
+ _$_.output_push('<!--' + _$_.hash(html_value_6) + '-->');
202
+ _$_.output_push(html_value_6);
203
+ _$_.output_push('<!---->');
204
+ }
182
205
 
183
- __output.push('</div>');
184
- _$_.pop_component();
185
- })
186
- }
187
- ];
206
+ _$_.output_push('</div>');
207
+ _$_.pop_component();
208
+ })
209
+ }
210
+ ];
188
211
 
189
- comp(...args);
190
- }
212
+ comp(...args);
213
+ }
214
+ });
191
215
 
192
216
  _$_.pop_component();
193
217
  }
194
218
 
195
- export function HtmlInChildrenWithSiblings(__output) {
219
+ export function HtmlInChildrenWithSiblings() {
196
220
  _$_.push_component();
197
221
 
198
222
  const content = '<p>Dynamic content</p>';
199
223
 
200
- {
201
- const comp = HtmlWrapper;
224
+ _$_.regular_block(() => {
225
+ {
226
+ const comp = HtmlWrapper;
202
227
 
203
- const args = [
204
- __output,
205
- {
206
- children: _$_.ripple_element(function render_children(__output) {
207
- _$_.push_component();
208
- __output.push('<h1');
209
- __output.push('>');
228
+ const args = [
229
+ {
230
+ children: _$_.ripple_element(function render_children() {
231
+ _$_.push_component();
232
+ _$_.output_push('<h1');
233
+ _$_.output_push('>');
210
234
 
211
- {
212
- __output.push('Title');
213
- }
235
+ {
236
+ _$_.output_push('Title');
237
+ }
214
238
 
215
- __output.push('</h1>');
216
- __output.push('<div');
217
- __output.push(' class="content"');
218
- __output.push('>');
239
+ _$_.output_push('</h1>');
240
+ _$_.output_push('<div');
241
+ _$_.output_push(' class="content"');
242
+ _$_.output_push('>');
219
243
 
220
- {
221
- const html_value_7 = String(content ?? '');
244
+ {
245
+ const html_value_7 = String(content ?? '');
222
246
 
223
- __output.push('<!--' + _$_.hash(html_value_7) + '-->');
224
- __output.push(html_value_7);
225
- __output.push('<!---->');
226
- }
247
+ _$_.output_push('<!--' + _$_.hash(html_value_7) + '-->');
248
+ _$_.output_push(html_value_7);
249
+ _$_.output_push('<!---->');
250
+ }
227
251
 
228
- __output.push('</div>');
229
- _$_.pop_component();
230
- })
231
- }
232
- ];
252
+ _$_.output_push('</div>');
253
+ _$_.pop_component();
254
+ })
255
+ }
256
+ ];
233
257
 
234
- comp(...args);
235
- }
258
+ comp(...args);
259
+ }
260
+ });
236
261
 
237
262
  _$_.pop_component();
238
263
  }
239
264
 
240
- export function MultipleHtmlInChildren(__output) {
265
+ export function MultipleHtmlInChildren() {
241
266
  _$_.push_component();
242
267
 
243
268
  const html1 = '<p>First</p>';
244
269
  const html2 = '<p>Second</p>';
245
270
 
246
- {
247
- const comp = HtmlWrapper;
271
+ _$_.regular_block(() => {
272
+ {
273
+ const comp = HtmlWrapper;
248
274
 
249
- const args = [
250
- __output,
251
- {
252
- children: _$_.ripple_element(function render_children(__output) {
253
- _$_.push_component();
254
- __output.push('<div');
255
- __output.push(' class="doc"');
256
- __output.push('>');
275
+ const args = [
276
+ {
277
+ children: _$_.ripple_element(function render_children() {
278
+ _$_.push_component();
279
+ _$_.output_push('<div');
280
+ _$_.output_push(' class="doc"');
281
+ _$_.output_push('>');
257
282
 
258
- {
259
- const html_value_8 = String(html1 ?? '');
283
+ {
284
+ const html_value_8 = String(html1 ?? '');
260
285
 
261
- __output.push('<!--' + _$_.hash(html_value_8) + '-->');
262
- __output.push(html_value_8);
263
- __output.push('<!---->');
286
+ _$_.output_push('<!--' + _$_.hash(html_value_8) + '-->');
287
+ _$_.output_push(html_value_8);
288
+ _$_.output_push('<!---->');
264
289
 
265
- const html_value_9 = String(html2 ?? '');
290
+ const html_value_9 = String(html2 ?? '');
266
291
 
267
- __output.push('<!--' + _$_.hash(html_value_9) + '-->');
268
- __output.push(html_value_9);
269
- __output.push('<!---->');
270
- }
292
+ _$_.output_push('<!--' + _$_.hash(html_value_9) + '-->');
293
+ _$_.output_push(html_value_9);
294
+ _$_.output_push('<!---->');
295
+ }
271
296
 
272
- __output.push('</div>');
273
- _$_.pop_component();
274
- })
275
- }
276
- ];
297
+ _$_.output_push('</div>');
298
+ _$_.pop_component();
299
+ })
300
+ }
301
+ ];
277
302
 
278
- comp(...args);
279
- }
303
+ comp(...args);
304
+ }
305
+ });
280
306
 
281
307
  _$_.pop_component();
282
308
  }
283
309
 
284
- export function HtmlWithComments(__output) {
310
+ export function HtmlWithComments() {
285
311
  _$_.push_component();
286
312
 
287
313
  const content = '<p>Before comment</p><!-- TODO: Elaborate --><p>After comment</p>';
288
314
 
289
- __output.push('<div');
290
- __output.push('>');
315
+ _$_.regular_block(() => {
316
+ _$_.output_push('<div');
317
+ _$_.output_push('>');
291
318
 
292
- {
293
- const html_value_10 = String(content ?? '');
319
+ {
320
+ const html_value_10 = String(content ?? '');
294
321
 
295
- __output.push('<!--' + _$_.hash(html_value_10) + '-->');
296
- __output.push(html_value_10);
297
- __output.push('<!---->');
298
- }
322
+ _$_.output_push('<!--' + _$_.hash(html_value_10) + '-->');
323
+ _$_.output_push(html_value_10);
324
+ _$_.output_push('<!---->');
325
+ }
326
+
327
+ _$_.output_push('</div>');
328
+ });
299
329
 
300
- __output.push('</div>');
301
330
  _$_.pop_component();
302
331
  }
303
332
 
304
- export function HtmlWithEmptyComment(__output) {
333
+ export function HtmlWithEmptyComment() {
305
334
  _$_.push_component();
306
335
 
307
336
  const content = '<p>Before</p><!----><p>After</p>';
308
337
 
309
- __output.push('<div');
310
- __output.push('>');
338
+ _$_.regular_block(() => {
339
+ _$_.output_push('<div');
340
+ _$_.output_push('>');
311
341
 
312
- {
313
- const html_value_11 = String(content ?? '');
342
+ {
343
+ const html_value_11 = String(content ?? '');
314
344
 
315
- __output.push('<!--' + _$_.hash(html_value_11) + '-->');
316
- __output.push(html_value_11);
317
- __output.push('<!---->');
318
- }
345
+ _$_.output_push('<!--' + _$_.hash(html_value_11) + '-->');
346
+ _$_.output_push(html_value_11);
347
+ _$_.output_push('<!---->');
348
+ }
349
+
350
+ _$_.output_push('</div>');
351
+ });
319
352
 
320
- __output.push('</div>');
321
353
  _$_.pop_component();
322
354
  }
323
355
 
324
- export function HtmlWithCommentsInChildren(__output) {
356
+ export function HtmlWithCommentsInChildren() {
325
357
  _$_.push_component();
326
358
 
327
359
  const content = '<h2 id="intro">Introduction</h2><p>Some text</p><!-- TODO --><p>More text</p>';
328
360
 
329
- {
330
- const comp = HtmlWrapper;
361
+ _$_.regular_block(() => {
362
+ {
363
+ const comp = HtmlWrapper;
331
364
 
332
- const args = [
333
- __output,
334
- {
335
- children: _$_.ripple_element(function render_children(__output) {
336
- _$_.push_component();
337
- __output.push('<div');
338
- __output.push(' class="vp-doc"');
339
- __output.push('>');
365
+ const args = [
366
+ {
367
+ children: _$_.ripple_element(function render_children() {
368
+ _$_.push_component();
369
+ _$_.output_push('<div');
370
+ _$_.output_push(' class="vp-doc"');
371
+ _$_.output_push('>');
340
372
 
341
- {
342
- const html_value_12 = String(content ?? '');
373
+ {
374
+ const html_value_12 = String(content ?? '');
343
375
 
344
- __output.push('<!--' + _$_.hash(html_value_12) + '-->');
345
- __output.push(html_value_12);
346
- __output.push('<!---->');
347
- }
376
+ _$_.output_push('<!--' + _$_.hash(html_value_12) + '-->');
377
+ _$_.output_push(html_value_12);
378
+ _$_.output_push('<!---->');
379
+ }
348
380
 
349
- __output.push('</div>');
350
- _$_.pop_component();
351
- })
352
- }
353
- ];
381
+ _$_.output_push('</div>');
382
+ _$_.pop_component();
383
+ })
384
+ }
385
+ ];
354
386
 
355
- comp(...args);
356
- }
387
+ comp(...args);
388
+ }
389
+ });
357
390
 
358
391
  _$_.pop_component();
359
392
  }
360
393
 
361
- function DocFooter(__output) {
394
+ function DocFooter() {
362
395
  _$_.push_component();
363
- __output.push('<footer');
364
- __output.push(' class="doc-footer"');
365
- __output.push('>');
366
396
 
367
- {
368
- __output.push('Footer content');
369
- }
397
+ _$_.regular_block(() => {
398
+ _$_.output_push('<footer');
399
+ _$_.output_push(' class="doc-footer"');
400
+ _$_.output_push('>');
401
+
402
+ {
403
+ _$_.output_push('Footer content');
404
+ }
405
+
406
+ _$_.output_push('</footer>');
407
+ });
370
408
 
371
- __output.push('</footer>');
372
409
  _$_.pop_component();
373
410
  }
374
411
 
375
- export function DocLayout(
376
- __output,
377
- { children, editPath = '', nextLink = null, toc = [] }
378
- ) {
412
+ export function DocLayout({ children, editPath = '', nextLink = null, toc = [] }) {
379
413
  _$_.push_component();
380
- __output.push('<div');
381
- __output.push(' class="layout"');
382
- __output.push('>');
383
414
 
384
- {
385
- __output.push('<div');
386
- __output.push(' class="content-container"');
387
- __output.push('>');
415
+ _$_.regular_block(() => {
416
+ _$_.output_push('<div');
417
+ _$_.output_push(' class="layout"');
418
+ _$_.output_push('>');
388
419
 
389
420
  {
390
- __output.push('<article');
391
- __output.push('>');
421
+ _$_.output_push('<div');
422
+ _$_.output_push(' class="content-container"');
423
+ _$_.output_push('>');
392
424
 
393
425
  {
394
- __output.push('<div');
395
- __output.push('>');
426
+ _$_.output_push('<article');
427
+ _$_.output_push('>');
396
428
 
397
429
  {
398
- _$_.render_expression(__output, children);
399
- }
430
+ _$_.output_push('<div');
431
+ _$_.output_push('>');
400
432
 
401
- __output.push('</div>');
402
- }
433
+ {
434
+ _$_.render_expression(children);
435
+ }
403
436
 
404
- __output.push('</article>');
405
- __output.push('<!--[-->');
437
+ _$_.output_push('</div>');
438
+ }
406
439
 
407
- if (editPath) {
408
- __output.push('<div');
409
- __output.push(' class="edit-link"');
410
- __output.push('>');
440
+ _$_.output_push('</article>');
441
+ _$_.output_push('<!--[-->');
411
442
 
412
- {
413
- __output.push('<a');
414
- __output.push(_$_.attr('href', `https://github.com/edit/${editPath}`, false));
415
- __output.push('>');
443
+ if (editPath) {
444
+ _$_.output_push('<div');
445
+ _$_.output_push(' class="edit-link"');
446
+ _$_.output_push('>');
416
447
 
417
448
  {
418
- __output.push('Edit');
449
+ _$_.output_push('<a');
450
+ _$_.output_push(_$_.attr('href', `https://github.com/edit/${editPath}`, false));
451
+ _$_.output_push('>');
452
+
453
+ {
454
+ _$_.output_push('Edit');
455
+ }
456
+
457
+ _$_.output_push('</a>');
419
458
  }
420
459
 
421
- __output.push('</a>');
460
+ _$_.output_push('</div>');
422
461
  }
423
462
 
424
- __output.push('</div>');
425
- }
463
+ _$_.output_push('<!--]-->');
464
+ _$_.output_push('<!--[-->');
426
465
 
427
- __output.push('<!--]-->');
428
- __output.push('<!--[-->');
466
+ if (nextLink) {
467
+ _$_.output_push('<nav');
468
+ _$_.output_push(' class="prev-next"');
469
+ _$_.output_push('>');
429
470
 
430
- if (nextLink) {
431
- __output.push('<nav');
432
- __output.push(' class="prev-next"');
433
- __output.push('>');
471
+ {
472
+ _$_.output_push('<a');
473
+ _$_.output_push(_$_.attr('href', nextLink.href, false));
474
+ _$_.output_push('>');
434
475
 
435
- {
436
- __output.push('<a');
437
- __output.push(_$_.attr('href', nextLink.href, false));
438
- __output.push('>');
476
+ {
477
+ _$_.output_push(_$_.escape(nextLink.text));
478
+ }
439
479
 
440
- {
441
- __output.push(_$_.escape(nextLink.text));
480
+ _$_.output_push('</a>');
442
481
  }
443
482
 
444
- __output.push('</a>');
483
+ _$_.output_push('</nav>');
445
484
  }
446
485
 
447
- __output.push('</nav>');
448
- }
449
-
450
- __output.push('<!--]-->');
486
+ _$_.output_push('<!--]-->');
451
487
 
452
- {
453
- const comp = DocFooter;
454
- const args = [__output, {}];
488
+ {
489
+ const comp = DocFooter;
490
+ const args = [{}];
455
491
 
456
- comp(...args);
492
+ comp(...args);
493
+ }
457
494
  }
458
- }
459
-
460
- __output.push('</div>');
461
- __output.push('<aside');
462
- __output.push('>');
463
495
 
464
- {
465
- __output.push('<!--[-->');
496
+ _$_.output_push('</div>');
497
+ _$_.output_push('<aside');
498
+ _$_.output_push('>');
466
499
 
467
- if (toc.length > 0) {
468
- __output.push('<div');
469
- __output.push(' class="toc"');
470
- __output.push('>');
500
+ {
501
+ _$_.output_push('<!--[-->');
471
502
 
472
- {
473
- __output.push('<ul');
474
- __output.push('>');
503
+ if (toc.length > 0) {
504
+ _$_.output_push('<div');
505
+ _$_.output_push(' class="toc"');
506
+ _$_.output_push('>');
475
507
 
476
508
  {
477
- __output.push('<!--[-->');
509
+ _$_.output_push('<ul');
510
+ _$_.output_push('>');
478
511
 
479
- for (const item of toc) {
480
- __output.push('<li');
481
- __output.push('>');
512
+ {
513
+ _$_.output_push('<!--[-->');
482
514
 
483
- {
484
- __output.push('<a');
485
- __output.push(_$_.attr('href', item.href, false));
486
- __output.push('>');
515
+ for (const item of toc) {
516
+ _$_.output_push('<li');
517
+ _$_.output_push('>');
487
518
 
488
519
  {
489
- __output.push(_$_.escape(item.text));
520
+ _$_.output_push('<a');
521
+ _$_.output_push(_$_.attr('href', item.href, false));
522
+ _$_.output_push('>');
523
+
524
+ {
525
+ _$_.output_push(_$_.escape(item.text));
526
+ }
527
+
528
+ _$_.output_push('</a>');
490
529
  }
491
530
 
492
- __output.push('</a>');
531
+ _$_.output_push('</li>');
493
532
  }
494
533
 
495
- __output.push('</li>');
534
+ _$_.output_push('<!--]-->');
496
535
  }
497
536
 
498
- __output.push('<!--]-->');
537
+ _$_.output_push('</ul>');
499
538
  }
500
539
 
501
- __output.push('</ul>');
540
+ _$_.output_push('</div>');
502
541
  }
503
542
 
504
- __output.push('</div>');
543
+ _$_.output_push('<!--]-->');
505
544
  }
506
545
 
507
- __output.push('<!--]-->');
546
+ _$_.output_push('</aside>');
508
547
  }
509
548
 
510
- __output.push('</aside>');
511
- }
549
+ _$_.output_push('</div>');
550
+ });
512
551
 
513
- __output.push('</div>');
514
552
  _$_.pop_component();
515
553
  }
516
554
 
517
- export function HtmlWithServerData(__output) {
555
+ export function HtmlWithServerData() {
518
556
  _$_.push_component();
519
557
 
520
558
  const content = '<h1 id="intro" class="doc-h1">Introduction</h1><p>Ripple is a framework.</p>';
521
559
 
522
- {
523
- const comp = DocLayout;
560
+ _$_.regular_block(() => {
561
+ {
562
+ const comp = DocLayout;
524
563
 
525
- const args = [
526
- __output,
527
- {
528
- editPath: "docs/introduction.md",
529
- nextLink: { href: '/docs/quick-start', text: 'Quick Start' },
530
- toc: [
531
- { href: '#intro', text: 'Introduction' },
532
- { href: '#features', text: 'Features' }
533
- ],
534
-
535
- children: _$_.ripple_element(function render_children(__output) {
536
- _$_.push_component();
537
- __output.push('<div');
538
- __output.push(' class="vp-doc"');
539
- __output.push('>');
564
+ const args = [
565
+ {
566
+ editPath: "docs/introduction.md",
567
+ nextLink: { href: '/docs/quick-start', text: 'Quick Start' },
568
+ toc: [
569
+ { href: '#intro', text: 'Introduction' },
570
+ { href: '#features', text: 'Features' }
571
+ ],
572
+
573
+ children: _$_.ripple_element(function render_children() {
574
+ _$_.push_component();
575
+ _$_.output_push('<div');
576
+ _$_.output_push(' class="vp-doc"');
577
+ _$_.output_push('>');
540
578
 
541
- {
542
- const html_value_13 = String(content ?? '');
579
+ {
580
+ const html_value_13 = String(content ?? '');
543
581
 
544
- __output.push('<!--' + _$_.hash(html_value_13) + '-->');
545
- __output.push(html_value_13);
546
- __output.push('<!---->');
547
- }
582
+ _$_.output_push('<!--' + _$_.hash(html_value_13) + '-->');
583
+ _$_.output_push(html_value_13);
584
+ _$_.output_push('<!---->');
585
+ }
548
586
 
549
- __output.push('</div>');
550
- _$_.pop_component();
551
- })
552
- }
553
- ];
587
+ _$_.output_push('</div>');
588
+ _$_.pop_component();
589
+ })
590
+ }
591
+ ];
554
592
 
555
- comp(...args);
556
- }
593
+ comp(...args);
594
+ }
595
+ });
557
596
 
558
597
  _$_.pop_component();
559
598
  }
560
599
 
561
- export function HtmlWithClientDefaults(__output) {
600
+ export function HtmlWithClientDefaults() {
562
601
  _$_.push_component();
563
602
 
564
603
  const content = '<h1 id="intro" class="doc-h1">Introduction</h1><p>Ripple is a framework.</p>';
565
604
 
566
- {
567
- const comp = DocLayout;
605
+ _$_.regular_block(() => {
606
+ {
607
+ const comp = DocLayout;
568
608
 
569
- const args = [
570
- __output,
571
- {
572
- children: _$_.ripple_element(function render_children(__output) {
573
- _$_.push_component();
574
- __output.push('<div');
575
- __output.push(' class="vp-doc"');
576
- __output.push('>');
609
+ const args = [
610
+ {
611
+ children: _$_.ripple_element(function render_children() {
612
+ _$_.push_component();
613
+ _$_.output_push('<div');
614
+ _$_.output_push(' class="vp-doc"');
615
+ _$_.output_push('>');
577
616
 
578
- {
579
- const html_value_14 = String(content ?? '');
617
+ {
618
+ const html_value_14 = String(content ?? '');
580
619
 
581
- __output.push('<!--' + _$_.hash(html_value_14) + '-->');
582
- __output.push(html_value_14);
583
- __output.push('<!---->');
584
- }
620
+ _$_.output_push('<!--' + _$_.hash(html_value_14) + '-->');
621
+ _$_.output_push(html_value_14);
622
+ _$_.output_push('<!---->');
623
+ }
585
624
 
586
- __output.push('</div>');
587
- _$_.pop_component();
588
- })
589
- }
590
- ];
625
+ _$_.output_push('</div>');
626
+ _$_.pop_component();
627
+ })
628
+ }
629
+ ];
591
630
 
592
- comp(...args);
593
- }
631
+ comp(...args);
632
+ }
633
+ });
594
634
 
595
635
  _$_.pop_component();
596
636
  }
597
637
 
598
- export function HtmlWithUndefinedContent(__output) {
638
+ export function HtmlWithUndefinedContent() {
599
639
  _$_.push_component();
600
640
 
601
641
  const content = undefined;
602
642
 
603
- {
604
- const comp = DocLayout;
643
+ _$_.regular_block(() => {
644
+ {
645
+ const comp = DocLayout;
605
646
 
606
- const args = [
607
- __output,
608
- {
609
- children: _$_.ripple_element(function render_children(__output) {
610
- _$_.push_component();
611
- __output.push('<div');
612
- __output.push(' class="vp-doc"');
613
- __output.push('>');
647
+ const args = [
648
+ {
649
+ children: _$_.ripple_element(function render_children() {
650
+ _$_.push_component();
651
+ _$_.output_push('<div');
652
+ _$_.output_push(' class="vp-doc"');
653
+ _$_.output_push('>');
614
654
 
615
- {
616
- const html_value_15 = String(content ?? '');
655
+ {
656
+ const html_value_15 = String(content ?? '');
617
657
 
618
- __output.push('<!--' + _$_.hash(html_value_15) + '-->');
619
- __output.push(html_value_15);
620
- __output.push('<!---->');
621
- }
658
+ _$_.output_push('<!--' + _$_.hash(html_value_15) + '-->');
659
+ _$_.output_push(html_value_15);
660
+ _$_.output_push('<!---->');
661
+ }
622
662
 
623
- __output.push('</div>');
624
- _$_.pop_component();
625
- })
626
- }
627
- ];
663
+ _$_.output_push('</div>');
664
+ _$_.pop_component();
665
+ })
666
+ }
667
+ ];
628
668
 
629
- comp(...args);
630
- }
669
+ comp(...args);
670
+ }
671
+ });
631
672
 
632
673
  _$_.pop_component();
633
674
  }
634
675
 
635
- function DynamicHeading(__output, { level, children }) {
676
+ function DynamicHeading({ level, children }) {
636
677
  _$_.push_component();
637
- __output.push('<!--[-->');
638
678
 
639
- switch (level) {
640
- case 1:
641
- __output.push('<h1');
642
- __output.push(' class="heading"');
643
- __output.push('>');
644
- {
645
- _$_.render_expression(__output, children);
646
- }
647
- __output.push('</h1>');
679
+ _$_.regular_block(() => {
680
+ _$_.output_push('<!--[-->');
648
681
 
649
- case 2:
650
- __output.push('<h2');
651
- __output.push(' class="heading"');
652
- __output.push('>');
653
- {
654
- _$_.render_expression(__output, children);
655
- }
656
- __output.push('</h2>');
657
- }
682
+ switch (level) {
683
+ case 1:
684
+ _$_.output_push('<h1');
685
+ _$_.output_push(' class="heading"');
686
+ _$_.output_push('>');
687
+ {
688
+ _$_.render_expression(children);
689
+ }
690
+ _$_.output_push('</h1>');
691
+
692
+ case 2:
693
+ _$_.output_push('<h2');
694
+ _$_.output_push(' class="heading"');
695
+ _$_.output_push('>');
696
+ {
697
+ _$_.render_expression(children);
698
+ }
699
+ _$_.output_push('</h2>');
700
+ }
701
+
702
+ _$_.output_push('<!--]-->');
703
+ });
658
704
 
659
- __output.push('<!--]-->');
660
705
  _$_.pop_component();
661
706
  }
662
707
 
663
- function CodeBlock(__output, { code }) {
708
+ function CodeBlock({ code }) {
664
709
  _$_.push_component();
665
710
 
666
711
  const highlighted = `<pre class="shiki"><code>${code}</code></pre>`;
667
712
 
668
- __output.push('<div');
669
- __output.push(' class="code-block"');
670
- __output.push('>');
671
-
672
- {
673
- __output.push('<div');
674
- __output.push(' class="header"');
675
- __output.push('>');
713
+ _$_.regular_block(() => {
714
+ _$_.output_push('<div');
715
+ _$_.output_push(' class="code-block"');
716
+ _$_.output_push('>');
676
717
 
677
718
  {
678
- __output.push('<button');
679
- __output.push('>');
719
+ _$_.output_push('<div');
720
+ _$_.output_push(' class="header"');
721
+ _$_.output_push('>');
680
722
 
681
723
  {
682
- __output.push('Copy');
683
- }
724
+ _$_.output_push('<button');
725
+ _$_.output_push('>');
726
+
727
+ {
728
+ _$_.output_push('Copy');
729
+ }
684
730
 
685
- __output.push('</button>');
686
- __output.push('<span');
687
- __output.push(' class="lang"');
688
- __output.push('>');
731
+ _$_.output_push('</button>');
732
+ _$_.output_push('<span');
733
+ _$_.output_push(' class="lang"');
734
+ _$_.output_push('>');
689
735
 
690
- {
691
- __output.push('js');
736
+ {
737
+ _$_.output_push('js');
738
+ }
739
+
740
+ _$_.output_push('</span>');
692
741
  }
693
742
 
694
- __output.push('</span>');
695
- }
743
+ _$_.output_push('</div>');
744
+ _$_.output_push('<div');
745
+ _$_.output_push(' class="content"');
746
+ _$_.output_push('>');
696
747
 
697
- __output.push('</div>');
698
- __output.push('<div');
699
- __output.push(' class="content"');
700
- __output.push('>');
748
+ {
749
+ const html_value_16 = String(highlighted ?? '');
701
750
 
702
- {
703
- const html_value_16 = String(highlighted ?? '');
751
+ _$_.output_push('<!--' + _$_.hash(html_value_16) + '-->');
752
+ _$_.output_push(html_value_16);
753
+ _$_.output_push('<!---->');
754
+ }
704
755
 
705
- __output.push('<!--' + _$_.hash(html_value_16) + '-->');
706
- __output.push(html_value_16);
707
- __output.push('<!---->');
756
+ _$_.output_push('</div>');
708
757
  }
709
758
 
710
- __output.push('</div>');
711
- }
759
+ _$_.output_push('</div>');
760
+ });
712
761
 
713
- __output.push('</div>');
714
762
  _$_.pop_component();
715
763
  }
716
764
 
717
- function ContentWrapper(__output, { children }) {
765
+ function ContentWrapper({ children }) {
718
766
  _$_.push_component();
719
- __output.push('<div');
720
- __output.push(' class="wrapper"');
721
- __output.push('>');
722
767
 
723
- {
724
- __output.push('<div');
725
- __output.push(' class="inner"');
726
- __output.push('>');
768
+ _$_.regular_block(() => {
769
+ _$_.output_push('<div');
770
+ _$_.output_push(' class="wrapper"');
771
+ _$_.output_push('>');
727
772
 
728
773
  {
729
- _$_.render_expression(__output, children);
774
+ _$_.output_push('<div');
775
+ _$_.output_push(' class="inner"');
776
+ _$_.output_push('>');
777
+
778
+ {
779
+ _$_.render_expression(children);
780
+ }
781
+
782
+ _$_.output_push('</div>');
730
783
  }
731
784
 
732
- __output.push('</div>');
733
- }
785
+ _$_.output_push('</div>');
786
+ });
734
787
 
735
- __output.push('</div>');
736
788
  _$_.pop_component();
737
789
  }
738
790
 
739
- export function HtmlAfterSwitchInChildren(__output) {
791
+ export function HtmlAfterSwitchInChildren() {
740
792
  _$_.push_component();
741
793
 
742
- {
743
- const comp = ContentWrapper;
794
+ _$_.regular_block(() => {
795
+ {
796
+ const comp = ContentWrapper;
744
797
 
745
- const args = [
746
- __output,
747
- {
748
- children: _$_.ripple_element(function render_children(__output) {
749
- _$_.push_component();
798
+ const args = [
799
+ {
800
+ children: _$_.ripple_element(function render_children() {
801
+ _$_.push_component();
750
802
 
751
- {
752
- const comp = DynamicHeading;
803
+ {
804
+ const comp = DynamicHeading;
753
805
 
754
- const args = [
755
- __output,
756
- {
757
- level: 1,
758
- children: _$_.ripple_element(function render_children(__output) {
759
- _$_.push_component();
760
- __output.push('Title');
761
- _$_.pop_component();
762
- })
763
- }
764
- ];
806
+ const args = [
807
+ {
808
+ level: 1,
809
+ children: _$_.ripple_element(function render_children() {
810
+ _$_.push_component();
811
+ _$_.output_push('Title');
812
+ _$_.pop_component();
813
+ })
814
+ }
815
+ ];
765
816
 
766
- comp(...args);
767
- }
817
+ comp(...args);
818
+ }
768
819
 
769
- __output.push('<p');
770
- __output.push('>');
820
+ _$_.output_push('<p');
821
+ _$_.output_push('>');
771
822
 
772
- {
773
- __output.push('First paragraph');
774
- }
823
+ {
824
+ _$_.output_push('First paragraph');
825
+ }
775
826
 
776
- __output.push('</p>');
777
- __output.push('<p');
778
- __output.push('>');
827
+ _$_.output_push('</p>');
828
+ _$_.output_push('<p');
829
+ _$_.output_push('>');
779
830
 
780
- {
781
- __output.push('Second paragraph');
782
- }
831
+ {
832
+ _$_.output_push('Second paragraph');
833
+ }
783
834
 
784
- __output.push('</p>');
835
+ _$_.output_push('</p>');
785
836
 
786
- {
787
- const comp = CodeBlock;
788
- const args = [__output, { code: "const x = 1;" }];
837
+ {
838
+ const comp = CodeBlock;
839
+ const args = [{ code: "const x = 1;" }];
789
840
 
790
- comp(...args);
791
- }
841
+ comp(...args);
842
+ }
792
843
 
793
- __output.push('<p');
794
- __output.push('>');
844
+ _$_.output_push('<p');
845
+ _$_.output_push('>');
795
846
 
796
- {
797
- __output.push('After code');
798
- }
847
+ {
848
+ _$_.output_push('After code');
849
+ }
799
850
 
800
- __output.push('</p>');
801
- _$_.pop_component();
802
- })
803
- }
804
- ];
851
+ _$_.output_push('</p>');
852
+ _$_.pop_component();
853
+ })
854
+ }
855
+ ];
805
856
 
806
- comp(...args);
807
- }
857
+ comp(...args);
858
+ }
859
+ });
808
860
 
809
861
  _$_.pop_component();
810
862
  }
811
863
 
812
- function NavItem(__output, { href, text: label, active = false }) {
864
+ function NavItem({ href, text: label, active = false }) {
813
865
  _$_.push_component();
814
- __output.push('<div');
815
- __output.push(_$_.attr('class', `nav-item${active ? ' active' : ''}`));
816
- __output.push('>');
817
866
 
818
- {
819
- __output.push('<!--[-->');
867
+ _$_.regular_block(() => {
868
+ _$_.output_push('<div');
869
+ _$_.output_push(_$_.attr('class', `nav-item${active ? ' active' : ''}`));
870
+ _$_.output_push('>');
820
871
 
821
- if (active) {
822
- __output.push('<div');
823
- __output.push(' class="indicator"');
824
- __output.push('>');
825
- __output.push('</div>');
826
- }
872
+ {
873
+ _$_.output_push('<!--[-->');
827
874
 
828
- __output.push('<!--]-->');
829
- __output.push('<a');
830
- __output.push(_$_.attr('href', href, false));
831
- __output.push('>');
875
+ if (active) {
876
+ _$_.output_push('<div');
877
+ _$_.output_push(' class="indicator"');
878
+ _$_.output_push('>');
879
+ _$_.output_push('</div>');
880
+ }
832
881
 
833
- {
834
- __output.push('<span');
835
- __output.push('>');
882
+ _$_.output_push('<!--]-->');
883
+ _$_.output_push('<a');
884
+ _$_.output_push(_$_.attr('href', href, false));
885
+ _$_.output_push('>');
836
886
 
837
887
  {
838
- __output.push(_$_.escape(label));
888
+ _$_.output_push('<span');
889
+ _$_.output_push('>');
890
+
891
+ {
892
+ _$_.output_push(_$_.escape(label));
893
+ }
894
+
895
+ _$_.output_push('</span>');
839
896
  }
840
897
 
841
- __output.push('</span>');
898
+ _$_.output_push('</a>');
842
899
  }
843
900
 
844
- __output.push('</a>');
845
- }
901
+ _$_.output_push('</div>');
902
+ });
846
903
 
847
- __output.push('</div>');
848
904
  _$_.pop_component();
849
905
  }
850
906
 
851
- function SidebarSection(__output, { title, children }) {
907
+ function SidebarSection({ title, children }) {
852
908
  _$_.push_component();
853
909
 
854
910
  let lazy = _$_.track(true);
855
911
 
856
- __output.push('<section');
857
- __output.push(' class="sidebar-section"');
858
- __output.push('>');
859
-
860
- {
861
- __output.push('<div');
862
- __output.push(' class="section-header"');
863
- __output.push('>');
912
+ _$_.regular_block(() => {
913
+ _$_.output_push('<section');
914
+ _$_.output_push(' class="sidebar-section"');
915
+ _$_.output_push('>');
864
916
 
865
917
  {
866
- __output.push('<h2');
867
- __output.push('>');
918
+ _$_.output_push('<div');
919
+ _$_.output_push(' class="section-header"');
920
+ _$_.output_push('>');
868
921
 
869
922
  {
870
- __output.push(_$_.escape(title));
871
- }
923
+ _$_.output_push('<h2');
924
+ _$_.output_push('>');
872
925
 
873
- __output.push('</h2>');
874
- __output.push('<button');
875
- __output.push('>');
926
+ {
927
+ _$_.output_push(_$_.escape(title));
928
+ }
876
929
 
877
- {
878
- __output.push('Toggle');
930
+ _$_.output_push('</h2>');
931
+ _$_.output_push('<button');
932
+ _$_.output_push('>');
933
+
934
+ {
935
+ _$_.output_push('Toggle');
936
+ }
937
+
938
+ _$_.output_push('</button>');
879
939
  }
880
940
 
881
- __output.push('</button>');
882
- }
941
+ _$_.output_push('</div>');
942
+ _$_.output_push('<!--[-->');
883
943
 
884
- __output.push('</div>');
885
- __output.push('<!--[-->');
944
+ if (_$_.get(lazy)) {
945
+ _$_.output_push('<div');
946
+ _$_.output_push(' class="section-items"');
947
+ _$_.output_push('>');
886
948
 
887
- if (_$_.get(lazy)) {
888
- __output.push('<div');
889
- __output.push(' class="section-items"');
890
- __output.push('>');
949
+ {
950
+ _$_.render_expression(children);
951
+ }
891
952
 
892
- {
893
- _$_.render_expression(__output, children);
953
+ _$_.output_push('</div>');
894
954
  }
895
955
 
896
- __output.push('</div>');
956
+ _$_.output_push('<!--]-->');
897
957
  }
898
958
 
899
- __output.push('<!--]-->');
900
- }
959
+ _$_.output_push('</section>');
960
+ });
901
961
 
902
- __output.push('</section>');
903
962
  _$_.pop_component();
904
963
  }
905
964
 
906
- function SideNav(__output, { currentPath }) {
965
+ function SideNav({ currentPath }) {
907
966
  _$_.push_component();
908
- __output.push('<aside');
909
- __output.push(' class="sidebar"');
910
- __output.push('>');
911
967
 
912
- {
913
- __output.push('<nav');
914
- __output.push('>');
968
+ _$_.regular_block(() => {
969
+ _$_.output_push('<aside');
970
+ _$_.output_push(' class="sidebar"');
971
+ _$_.output_push('>');
915
972
 
916
973
  {
917
- __output.push('<div');
918
- __output.push(' class="group"');
919
- __output.push('>');
974
+ _$_.output_push('<nav');
975
+ _$_.output_push('>');
920
976
 
921
977
  {
978
+ _$_.output_push('<div');
979
+ _$_.output_push(' class="group"');
980
+ _$_.output_push('>');
981
+
922
982
  {
923
- const comp = SidebarSection;
983
+ {
984
+ const comp = SidebarSection;
924
985
 
925
- const args = [
926
- __output,
927
- {
928
- title: "Getting Started",
929
- children: _$_.ripple_element(function render_children(__output) {
930
- _$_.push_component();
986
+ const args = [
987
+ {
988
+ title: "Getting Started",
989
+ children: _$_.ripple_element(function render_children() {
990
+ _$_.push_component();
931
991
 
932
- {
933
- const comp = NavItem;
992
+ {
993
+ const comp = NavItem;
934
994
 
935
- const args = [
936
- __output,
937
- {
938
- href: "/intro",
939
- text: "Introduction",
940
- active: currentPath === '/intro'
941
- }
942
- ];
995
+ const args = [
996
+ {
997
+ href: "/intro",
998
+ text: "Introduction",
999
+ active: currentPath === '/intro'
1000
+ }
1001
+ ];
943
1002
 
944
- comp(...args);
945
- }
1003
+ comp(...args);
1004
+ }
946
1005
 
947
- {
948
- const comp = NavItem;
1006
+ {
1007
+ const comp = NavItem;
949
1008
 
950
- const args = [
951
- __output,
952
- {
953
- href: "/start",
954
- text: "Quick Start",
955
- active: currentPath === '/start'
956
- }
957
- ];
1009
+ const args = [
1010
+ {
1011
+ href: "/start",
1012
+ text: "Quick Start",
1013
+ active: currentPath === '/start'
1014
+ }
1015
+ ];
958
1016
 
959
- comp(...args);
960
- }
1017
+ comp(...args);
1018
+ }
961
1019
 
962
- _$_.pop_component();
963
- })
964
- }
965
- ];
1020
+ _$_.pop_component();
1021
+ })
1022
+ }
1023
+ ];
966
1024
 
967
- comp(...args);
1025
+ comp(...args);
1026
+ }
968
1027
  }
969
- }
970
1028
 
971
- __output.push('</div>');
972
- __output.push('<div');
973
- __output.push(' class="group"');
974
- __output.push('>');
1029
+ _$_.output_push('</div>');
1030
+ _$_.output_push('<div');
1031
+ _$_.output_push(' class="group"');
1032
+ _$_.output_push('>');
975
1033
 
976
- {
977
1034
  {
978
- const comp = SidebarSection;
1035
+ {
1036
+ const comp = SidebarSection;
979
1037
 
980
- const args = [
981
- __output,
982
- {
983
- title: "Guide",
984
- children: _$_.ripple_element(function render_children(__output) {
985
- _$_.push_component();
1038
+ const args = [
1039
+ {
1040
+ title: "Guide",
1041
+ children: _$_.ripple_element(function render_children() {
1042
+ _$_.push_component();
986
1043
 
987
- {
988
- const comp = NavItem;
1044
+ {
1045
+ const comp = NavItem;
989
1046
 
990
- const args = [
991
- __output,
992
- {
993
- href: "/guide/app",
994
- text: "Application",
995
- active: currentPath === '/guide/app'
996
- }
997
- ];
1047
+ const args = [
1048
+ {
1049
+ href: "/guide/app",
1050
+ text: "Application",
1051
+ active: currentPath === '/guide/app'
1052
+ }
1053
+ ];
998
1054
 
999
- comp(...args);
1000
- }
1055
+ comp(...args);
1056
+ }
1001
1057
 
1002
- {
1003
- const comp = NavItem;
1058
+ {
1059
+ const comp = NavItem;
1004
1060
 
1005
- const args = [
1006
- __output,
1007
- {
1008
- href: "/guide/syntax",
1009
- text: "Syntax",
1010
- active: currentPath === '/guide/syntax'
1011
- }
1012
- ];
1061
+ const args = [
1062
+ {
1063
+ href: "/guide/syntax",
1064
+ text: "Syntax",
1065
+ active: currentPath === '/guide/syntax'
1066
+ }
1067
+ ];
1013
1068
 
1014
- comp(...args);
1015
- }
1069
+ comp(...args);
1070
+ }
1016
1071
 
1017
- _$_.pop_component();
1018
- })
1019
- }
1020
- ];
1072
+ _$_.pop_component();
1073
+ })
1074
+ }
1075
+ ];
1021
1076
 
1022
- comp(...args);
1077
+ comp(...args);
1078
+ }
1023
1079
  }
1080
+
1081
+ _$_.output_push('</div>');
1024
1082
  }
1025
1083
 
1026
- __output.push('</div>');
1084
+ _$_.output_push('</nav>');
1027
1085
  }
1028
1086
 
1029
- __output.push('</nav>');
1030
- }
1087
+ _$_.output_push('</aside>');
1088
+ });
1031
1089
 
1032
- __output.push('</aside>');
1033
1090
  _$_.pop_component();
1034
1091
  }
1035
1092
 
1036
- function PageHeader(__output) {
1093
+ function PageHeader() {
1037
1094
  _$_.push_component();
1038
- __output.push('<header');
1039
- __output.push(' class="page-header"');
1040
- __output.push('>');
1041
1095
 
1042
- {
1043
- __output.push('<div');
1044
- __output.push(' class="logo"');
1045
- __output.push('>');
1096
+ _$_.regular_block(() => {
1097
+ _$_.output_push('<header');
1098
+ _$_.output_push(' class="page-header"');
1099
+ _$_.output_push('>');
1046
1100
 
1047
1101
  {
1048
- __output.push('MyApp');
1102
+ _$_.output_push('<div');
1103
+ _$_.output_push(' class="logo"');
1104
+ _$_.output_push('>');
1105
+
1106
+ {
1107
+ _$_.output_push('MyApp');
1108
+ }
1109
+
1110
+ _$_.output_push('</div>');
1049
1111
  }
1050
1112
 
1051
- __output.push('</div>');
1052
- }
1113
+ _$_.output_push('</header>');
1114
+ });
1053
1115
 
1054
- __output.push('</header>');
1055
1116
  _$_.pop_component();
1056
1117
  }
1057
1118
 
1058
- export function LayoutWithSidebarAndMain(__output) {
1119
+ export function LayoutWithSidebarAndMain() {
1059
1120
  _$_.push_component();
1060
- __output.push('<div');
1061
- __output.push(' class="layout"');
1062
- __output.push('>');
1063
-
1064
- {
1065
- {
1066
- const comp = PageHeader;
1067
- const args = [__output, {}];
1068
-
1069
- comp(...args);
1070
- }
1071
1121
 
1072
- __output.push('<div');
1073
- __output.push(' class="content-wrapper"');
1074
- __output.push('>');
1122
+ _$_.regular_block(() => {
1123
+ _$_.output_push('<div');
1124
+ _$_.output_push(' class="layout"');
1125
+ _$_.output_push('>');
1075
1126
 
1076
1127
  {
1077
1128
  {
1078
- const comp = SideNav;
1079
- const args = [__output, { currentPath: "/intro" }];
1129
+ const comp = PageHeader;
1130
+ const args = [{}];
1080
1131
 
1081
1132
  comp(...args);
1082
1133
  }
1083
1134
 
1084
- __output.push('<main');
1085
- __output.push(' class="main-content"');
1086
- __output.push('>');
1135
+ _$_.output_push('<div');
1136
+ _$_.output_push(' class="content-wrapper"');
1137
+ _$_.output_push('>');
1087
1138
 
1088
1139
  {
1089
- __output.push('<div');
1090
- __output.push(' class="article"');
1091
- __output.push('>');
1140
+ {
1141
+ const comp = SideNav;
1142
+ const args = [{ currentPath: "/intro" }];
1143
+
1144
+ comp(...args);
1145
+ }
1146
+
1147
+ _$_.output_push('<main');
1148
+ _$_.output_push(' class="main-content"');
1149
+ _$_.output_push('>');
1092
1150
 
1093
1151
  {
1094
- __output.push('<div');
1095
- __output.push('>');
1152
+ _$_.output_push('<div');
1153
+ _$_.output_push(' class="article"');
1154
+ _$_.output_push('>');
1096
1155
 
1097
1156
  {
1098
- __output.push('<h1');
1099
- __output.push('>');
1157
+ _$_.output_push('<div');
1158
+ _$_.output_push('>');
1100
1159
 
1101
1160
  {
1102
- __output.push('Introduction');
1103
- }
1161
+ _$_.output_push('<h1');
1162
+ _$_.output_push('>');
1104
1163
 
1105
- __output.push('</h1>');
1106
- __output.push('<p');
1107
- __output.push('>');
1164
+ {
1165
+ _$_.output_push('Introduction');
1166
+ }
1108
1167
 
1109
- {
1110
- __output.push('Welcome to the docs.');
1168
+ _$_.output_push('</h1>');
1169
+ _$_.output_push('<p');
1170
+ _$_.output_push('>');
1171
+
1172
+ {
1173
+ _$_.output_push('Welcome to the docs.');
1174
+ }
1175
+
1176
+ _$_.output_push('</p>');
1111
1177
  }
1112
1178
 
1113
- __output.push('</p>');
1179
+ _$_.output_push('</div>');
1114
1180
  }
1115
1181
 
1116
- __output.push('</div>');
1117
- }
1182
+ _$_.output_push('</div>');
1183
+ _$_.output_push('<!--[-->');
1118
1184
 
1119
- __output.push('</div>');
1120
- __output.push('<!--[-->');
1185
+ if (true) {
1186
+ _$_.output_push('<div');
1187
+ _$_.output_push(' class="edit-link"');
1188
+ _$_.output_push('>');
1121
1189
 
1122
- if (true) {
1123
- __output.push('<div');
1124
- __output.push(' class="edit-link"');
1125
- __output.push('>');
1190
+ {
1191
+ _$_.output_push('<a');
1192
+ _$_.output_push(' href="/edit"');
1193
+ _$_.output_push('>');
1126
1194
 
1127
- {
1128
- __output.push('<a');
1129
- __output.push(' href="/edit"');
1130
- __output.push('>');
1195
+ {
1196
+ _$_.output_push('Edit');
1197
+ }
1131
1198
 
1132
- {
1133
- __output.push('Edit');
1199
+ _$_.output_push('</a>');
1134
1200
  }
1135
1201
 
1136
- __output.push('</a>');
1202
+ _$_.output_push('</div>');
1137
1203
  }
1138
1204
 
1139
- __output.push('</div>');
1140
- }
1141
-
1142
- __output.push('<!--]-->');
1205
+ _$_.output_push('<!--]-->');
1143
1206
 
1144
- {
1145
- const comp = PageHeader;
1146
- const args = [__output, {}];
1207
+ {
1208
+ const comp = PageHeader;
1209
+ const args = [{}];
1147
1210
 
1148
- comp(...args);
1211
+ comp(...args);
1212
+ }
1149
1213
  }
1214
+
1215
+ _$_.output_push('</main>');
1150
1216
  }
1151
1217
 
1152
- __output.push('</main>');
1218
+ _$_.output_push('</div>');
1153
1219
  }
1154
1220
 
1155
- __output.push('</div>');
1156
- }
1221
+ _$_.output_push('</div>');
1222
+ });
1157
1223
 
1158
- __output.push('</div>');
1159
1224
  _$_.pop_component();
1160
1225
  }
1161
1226
 
1162
- function ArticleWrapper(__output, { children }) {
1227
+ function ArticleWrapper({ children }) {
1163
1228
  _$_.push_component();
1164
- __output.push('<article');
1165
- __output.push(' class="doc-content"');
1166
- __output.push('>');
1167
1229
 
1168
- {
1169
- __output.push('<div');
1170
- __output.push('>');
1230
+ _$_.regular_block(() => {
1231
+ _$_.output_push('<article');
1232
+ _$_.output_push(' class="doc-content"');
1233
+ _$_.output_push('>');
1171
1234
 
1172
1235
  {
1173
- _$_.render_expression(__output, children);
1236
+ _$_.output_push('<div');
1237
+ _$_.output_push('>');
1238
+
1239
+ {
1240
+ _$_.render_expression(children);
1241
+ }
1242
+
1243
+ _$_.output_push('</div>');
1174
1244
  }
1175
1245
 
1176
- __output.push('</div>');
1177
- }
1246
+ _$_.output_push('</article>');
1247
+ });
1178
1248
 
1179
- __output.push('</article>');
1180
1249
  _$_.pop_component();
1181
1250
  }
1182
1251
 
1183
- function SimpleFooter(__output) {
1252
+ function SimpleFooter() {
1184
1253
  _$_.push_component();
1185
- __output.push('<footer');
1186
- __output.push(' class="doc-footer"');
1187
- __output.push('>');
1188
1254
 
1189
- {
1190
- __output.push('Footer');
1191
- }
1255
+ _$_.regular_block(() => {
1256
+ _$_.output_push('<footer');
1257
+ _$_.output_push(' class="doc-footer"');
1258
+ _$_.output_push('>');
1259
+
1260
+ {
1261
+ _$_.output_push('Footer');
1262
+ }
1263
+
1264
+ _$_.output_push('</footer>');
1265
+ });
1192
1266
 
1193
- __output.push('</footer>');
1194
1267
  _$_.pop_component();
1195
1268
  }
1196
1269
 
1197
- export function ArticleWithChildrenThenSibling(__output) {
1270
+ export function ArticleWithChildrenThenSibling() {
1198
1271
  _$_.push_component();
1199
- __output.push('<div');
1200
- __output.push(' class="content-container"');
1201
- __output.push('>');
1202
1272
 
1203
- {
1204
- {
1205
- const comp = ArticleWrapper;
1273
+ _$_.regular_block(() => {
1274
+ _$_.output_push('<div');
1275
+ _$_.output_push(' class="content-container"');
1276
+ _$_.output_push('>');
1206
1277
 
1207
- const args = [
1208
- __output,
1209
- {
1210
- children: _$_.ripple_element(function render_children(__output) {
1211
- _$_.push_component();
1212
- __output.push('<h1');
1213
- __output.push('>');
1278
+ {
1279
+ {
1280
+ const comp = ArticleWrapper;
1214
1281
 
1215
- {
1216
- __output.push('Title');
1217
- }
1282
+ const args = [
1283
+ {
1284
+ children: _$_.ripple_element(function render_children() {
1285
+ _$_.push_component();
1286
+ _$_.output_push('<h1');
1287
+ _$_.output_push('>');
1218
1288
 
1219
- __output.push('</h1>');
1220
- __output.push('<p');
1221
- __output.push('>');
1289
+ {
1290
+ _$_.output_push('Title');
1291
+ }
1222
1292
 
1223
- {
1224
- __output.push('Content goes here.');
1225
- }
1293
+ _$_.output_push('</h1>');
1294
+ _$_.output_push('<p');
1295
+ _$_.output_push('>');
1226
1296
 
1227
- __output.push('</p>');
1228
- _$_.pop_component();
1229
- })
1230
- }
1231
- ];
1297
+ {
1298
+ _$_.output_push('Content goes here.');
1299
+ }
1232
1300
 
1233
- comp(...args);
1234
- }
1301
+ _$_.output_push('</p>');
1302
+ _$_.pop_component();
1303
+ })
1304
+ }
1305
+ ];
1235
1306
 
1236
- __output.push('<!--[-->');
1307
+ comp(...args);
1308
+ }
1237
1309
 
1238
- if (true) {
1239
- __output.push('<div');
1240
- __output.push(' class="edit-link"');
1241
- __output.push('>');
1310
+ _$_.output_push('<!--[-->');
1242
1311
 
1243
- {
1244
- __output.push('<a');
1245
- __output.push(' href="/edit"');
1246
- __output.push('>');
1312
+ if (true) {
1313
+ _$_.output_push('<div');
1314
+ _$_.output_push(' class="edit-link"');
1315
+ _$_.output_push('>');
1247
1316
 
1248
1317
  {
1249
- __output.push('Edit');
1318
+ _$_.output_push('<a');
1319
+ _$_.output_push(' href="/edit"');
1320
+ _$_.output_push('>');
1321
+
1322
+ {
1323
+ _$_.output_push('Edit');
1324
+ }
1325
+
1326
+ _$_.output_push('</a>');
1250
1327
  }
1251
1328
 
1252
- __output.push('</a>');
1329
+ _$_.output_push('</div>');
1253
1330
  }
1254
1331
 
1255
- __output.push('</div>');
1256
- }
1332
+ _$_.output_push('<!--]-->');
1333
+ _$_.output_push('<!--[-->');
1257
1334
 
1258
- __output.push('<!--]-->');
1259
- __output.push('<!--[-->');
1335
+ if (true) {
1336
+ _$_.output_push('<nav');
1337
+ _$_.output_push(' class="prev-next"');
1338
+ _$_.output_push('>');
1260
1339
 
1261
- if (true) {
1262
- __output.push('<nav');
1263
- __output.push(' class="prev-next"');
1264
- __output.push('>');
1340
+ {
1341
+ _$_.output_push('<a');
1342
+ _$_.output_push(' href="/prev"');
1343
+ _$_.output_push('>');
1265
1344
 
1266
- {
1267
- __output.push('<a');
1268
- __output.push(' href="/prev"');
1269
- __output.push('>');
1345
+ {
1346
+ _$_.output_push('Previous');
1347
+ }
1270
1348
 
1271
- {
1272
- __output.push('Previous');
1349
+ _$_.output_push('</a>');
1273
1350
  }
1274
1351
 
1275
- __output.push('</a>');
1352
+ _$_.output_push('</nav>');
1276
1353
  }
1277
1354
 
1278
- __output.push('</nav>');
1279
- }
1280
-
1281
- __output.push('<!--]-->');
1355
+ _$_.output_push('<!--]-->');
1282
1356
 
1283
- {
1284
- const comp = SimpleFooter;
1285
- const args = [__output, {}];
1357
+ {
1358
+ const comp = SimpleFooter;
1359
+ const args = [{}];
1286
1360
 
1287
- comp(...args);
1361
+ comp(...args);
1362
+ }
1288
1363
  }
1289
- }
1290
1364
 
1291
- __output.push('</div>');
1365
+ _$_.output_push('</div>');
1366
+ });
1367
+
1292
1368
  _$_.pop_component();
1293
1369
  }
1294
1370
 
1295
- export function ArticleWithHtmlChildThenSibling(__output) {
1371
+ export function ArticleWithHtmlChildThenSibling() {
1296
1372
  _$_.push_component();
1297
1373
 
1298
1374
  const htmlContent = '<pre><code>const x = 1;</code></pre>';
1299
1375
 
1300
- __output.push('<div');
1301
- __output.push(' class="content-container"');
1302
- __output.push('>');
1376
+ _$_.regular_block(() => {
1377
+ _$_.output_push('<div');
1378
+ _$_.output_push(' class="content-container"');
1379
+ _$_.output_push('>');
1303
1380
 
1304
- {
1305
1381
  {
1306
- const comp = ArticleWrapper;
1307
-
1308
- const args = [
1309
- __output,
1310
- {
1311
- children: _$_.ripple_element(function render_children(__output) {
1312
- _$_.push_component();
1313
- __output.push('<div');
1314
- __output.push(' class="doc-content"');
1315
- __output.push('>');
1382
+ {
1383
+ const comp = ArticleWrapper;
1316
1384
 
1317
- {
1318
- const html_value_17 = String(htmlContent ?? '');
1385
+ const args = [
1386
+ {
1387
+ children: _$_.ripple_element(function render_children() {
1388
+ _$_.push_component();
1389
+ _$_.output_push('<div');
1390
+ _$_.output_push(' class="doc-content"');
1391
+ _$_.output_push('>');
1319
1392
 
1320
- __output.push('<!--' + _$_.hash(html_value_17) + '-->');
1321
- __output.push(html_value_17);
1322
- __output.push('<!---->');
1323
- }
1393
+ {
1394
+ const html_value_17 = String(htmlContent ?? '');
1324
1395
 
1325
- __output.push('</div>');
1326
- _$_.pop_component();
1327
- })
1328
- }
1329
- ];
1396
+ _$_.output_push('<!--' + _$_.hash(html_value_17) + '-->');
1397
+ _$_.output_push(html_value_17);
1398
+ _$_.output_push('<!---->');
1399
+ }
1330
1400
 
1331
- comp(...args);
1332
- }
1401
+ _$_.output_push('</div>');
1402
+ _$_.pop_component();
1403
+ })
1404
+ }
1405
+ ];
1333
1406
 
1334
- __output.push('<!--[-->');
1407
+ comp(...args);
1408
+ }
1335
1409
 
1336
- if (true) {
1337
- __output.push('<div');
1338
- __output.push(' class="edit-link"');
1339
- __output.push('>');
1410
+ _$_.output_push('<!--[-->');
1340
1411
 
1341
- {
1342
- __output.push('<a');
1343
- __output.push(' href="/edit"');
1344
- __output.push('>');
1412
+ if (true) {
1413
+ _$_.output_push('<div');
1414
+ _$_.output_push(' class="edit-link"');
1415
+ _$_.output_push('>');
1345
1416
 
1346
1417
  {
1347
- __output.push('Edit');
1418
+ _$_.output_push('<a');
1419
+ _$_.output_push(' href="/edit"');
1420
+ _$_.output_push('>');
1421
+
1422
+ {
1423
+ _$_.output_push('Edit');
1424
+ }
1425
+
1426
+ _$_.output_push('</a>');
1348
1427
  }
1349
1428
 
1350
- __output.push('</a>');
1429
+ _$_.output_push('</div>');
1351
1430
  }
1352
1431
 
1353
- __output.push('</div>');
1354
- }
1355
-
1356
- __output.push('<!--]-->');
1432
+ _$_.output_push('<!--]-->');
1357
1433
 
1358
- {
1359
- const comp = SimpleFooter;
1360
- const args = [__output, {}];
1434
+ {
1435
+ const comp = SimpleFooter;
1436
+ const args = [{}];
1361
1437
 
1362
- comp(...args);
1438
+ comp(...args);
1439
+ }
1363
1440
  }
1364
- }
1365
1441
 
1366
- __output.push('</div>');
1442
+ _$_.output_push('</div>');
1443
+ });
1444
+
1367
1445
  _$_.pop_component();
1368
1446
  }
1369
1447
 
1370
- function InlineArticleLayout(__output, { children }) {
1448
+ function InlineArticleLayout({ children }) {
1371
1449
  _$_.push_component();
1372
- __output.push('<div');
1373
- __output.push(' class="content-container"');
1374
- __output.push('>');
1375
1450
 
1376
- {
1377
- __output.push('<article');
1378
- __output.push(' class="doc-content"');
1379
- __output.push('>');
1451
+ _$_.regular_block(() => {
1452
+ _$_.output_push('<div');
1453
+ _$_.output_push(' class="content-container"');
1454
+ _$_.output_push('>');
1380
1455
 
1381
1456
  {
1382
- __output.push('<div');
1383
- __output.push('>');
1457
+ _$_.output_push('<article');
1458
+ _$_.output_push(' class="doc-content"');
1459
+ _$_.output_push('>');
1384
1460
 
1385
1461
  {
1386
- _$_.render_expression(__output, children);
1462
+ _$_.output_push('<div');
1463
+ _$_.output_push('>');
1464
+
1465
+ {
1466
+ _$_.render_expression(children);
1467
+ }
1468
+
1469
+ _$_.output_push('</div>');
1387
1470
  }
1388
1471
 
1389
- __output.push('</div>');
1390
- }
1472
+ _$_.output_push('</article>');
1473
+ _$_.output_push('<!--[-->');
1391
1474
 
1392
- __output.push('</article>');
1393
- __output.push('<!--[-->');
1475
+ if (true) {
1476
+ _$_.output_push('<div');
1477
+ _$_.output_push(' class="edit-link"');
1478
+ _$_.output_push('>');
1394
1479
 
1395
- if (true) {
1396
- __output.push('<div');
1397
- __output.push(' class="edit-link"');
1398
- __output.push('>');
1480
+ {
1481
+ _$_.output_push('<a');
1482
+ _$_.output_push(' href="/edit"');
1483
+ _$_.output_push('>');
1399
1484
 
1400
- {
1401
- __output.push('<a');
1402
- __output.push(' href="/edit"');
1403
- __output.push('>');
1485
+ {
1486
+ _$_.output_push('Edit');
1487
+ }
1404
1488
 
1405
- {
1406
- __output.push('Edit');
1489
+ _$_.output_push('</a>');
1407
1490
  }
1408
1491
 
1409
- __output.push('</a>');
1492
+ _$_.output_push('</div>');
1410
1493
  }
1411
1494
 
1412
- __output.push('</div>');
1413
- }
1414
-
1415
- __output.push('<!--]-->');
1495
+ _$_.output_push('<!--]-->');
1416
1496
 
1417
- {
1418
- const comp = SimpleFooter;
1419
- const args = [__output, {}];
1497
+ {
1498
+ const comp = SimpleFooter;
1499
+ const args = [{}];
1420
1500
 
1421
- comp(...args);
1501
+ comp(...args);
1502
+ }
1422
1503
  }
1423
- }
1424
1504
 
1425
- __output.push('</div>');
1505
+ _$_.output_push('</div>');
1506
+ });
1507
+
1426
1508
  _$_.pop_component();
1427
1509
  }
1428
1510
 
1429
- export function InlineArticleWithHtmlChild(__output) {
1511
+ export function InlineArticleWithHtmlChild() {
1430
1512
  _$_.push_component();
1431
1513
 
1432
1514
  const htmlContent = '<pre><code>const x = 1;</code></pre>';
1433
1515
 
1434
- {
1435
- const comp = InlineArticleLayout;
1516
+ _$_.regular_block(() => {
1517
+ {
1518
+ const comp = InlineArticleLayout;
1436
1519
 
1437
- const args = [
1438
- __output,
1439
- {
1440
- children: _$_.ripple_element(function render_children(__output) {
1441
- _$_.push_component();
1442
- __output.push('<div');
1443
- __output.push(' class="doc-content"');
1444
- __output.push('>');
1520
+ const args = [
1521
+ {
1522
+ children: _$_.ripple_element(function render_children() {
1523
+ _$_.push_component();
1524
+ _$_.output_push('<div');
1525
+ _$_.output_push(' class="doc-content"');
1526
+ _$_.output_push('>');
1445
1527
 
1446
- {
1447
- const html_value_18 = String(htmlContent ?? '');
1528
+ {
1529
+ const html_value_18 = String(htmlContent ?? '');
1448
1530
 
1449
- __output.push('<!--' + _$_.hash(html_value_18) + '-->');
1450
- __output.push(html_value_18);
1451
- __output.push('<!---->');
1452
- }
1531
+ _$_.output_push('<!--' + _$_.hash(html_value_18) + '-->');
1532
+ _$_.output_push(html_value_18);
1533
+ _$_.output_push('<!---->');
1534
+ }
1453
1535
 
1454
- __output.push('</div>');
1455
- _$_.pop_component();
1456
- })
1457
- }
1458
- ];
1536
+ _$_.output_push('</div>');
1537
+ _$_.pop_component();
1538
+ })
1539
+ }
1540
+ ];
1459
1541
 
1460
- comp(...args);
1461
- }
1542
+ comp(...args);
1543
+ }
1544
+ });
1462
1545
 
1463
1546
  _$_.pop_component();
1464
1547
  }
1465
1548
 
1466
- function HeaderStub(__output) {
1549
+ function HeaderStub() {
1467
1550
  _$_.push_component();
1468
- __output.push('<header');
1469
- __output.push(' class="header"');
1470
- __output.push('>');
1471
1551
 
1472
- {
1473
- __output.push('Header');
1474
- }
1552
+ _$_.regular_block(() => {
1553
+ _$_.output_push('<header');
1554
+ _$_.output_push(' class="header"');
1555
+ _$_.output_push('>');
1556
+
1557
+ {
1558
+ _$_.output_push('Header');
1559
+ }
1560
+
1561
+ _$_.output_push('</header>');
1562
+ });
1475
1563
 
1476
- __output.push('</header>');
1477
1564
  _$_.pop_component();
1478
1565
  }
1479
1566
 
1480
- function SidebarStub(__output) {
1567
+ function SidebarStub() {
1481
1568
  _$_.push_component();
1482
- __output.push('<aside');
1483
- __output.push(' class="sidebar"');
1484
- __output.push('>');
1485
1569
 
1486
- {
1487
- __output.push('Sidebar');
1488
- }
1570
+ _$_.regular_block(() => {
1571
+ _$_.output_push('<aside');
1572
+ _$_.output_push(' class="sidebar"');
1573
+ _$_.output_push('>');
1574
+
1575
+ {
1576
+ _$_.output_push('Sidebar');
1577
+ }
1578
+
1579
+ _$_.output_push('</aside>');
1580
+ });
1489
1581
 
1490
- __output.push('</aside>');
1491
1582
  _$_.pop_component();
1492
1583
  }
1493
1584
 
1494
- function FooterStub(__output) {
1585
+ function FooterStub() {
1495
1586
  _$_.push_component();
1496
- __output.push('<footer');
1497
- __output.push(' class="footer"');
1498
- __output.push('>');
1499
1587
 
1500
- {
1501
- __output.push('Footer');
1502
- }
1588
+ _$_.regular_block(() => {
1589
+ _$_.output_push('<footer');
1590
+ _$_.output_push(' class="footer"');
1591
+ _$_.output_push('>');
1592
+
1593
+ {
1594
+ _$_.output_push('Footer');
1595
+ }
1596
+
1597
+ _$_.output_push('</footer>');
1598
+ });
1503
1599
 
1504
- __output.push('</footer>');
1505
1600
  _$_.pop_component();
1506
1601
  }
1507
1602
 
1508
- function DocsLayoutInner(__output, { children, editPath = '', nextLink = null }) {
1603
+ function DocsLayoutInner({ children, editPath = '', nextLink = null }) {
1509
1604
  _$_.push_component();
1510
- __output.push('<div');
1511
- __output.push(' class="layout"');
1512
- __output.push('>');
1513
-
1514
- {
1515
- {
1516
- const comp = HeaderStub;
1517
- const args = [__output, {}];
1518
-
1519
- comp(...args);
1520
- }
1521
1605
 
1522
- __output.push('<div');
1523
- __output.push(' class="docs-wrapper"');
1524
- __output.push('>');
1606
+ _$_.regular_block(() => {
1607
+ _$_.output_push('<div');
1608
+ _$_.output_push(' class="layout"');
1609
+ _$_.output_push('>');
1525
1610
 
1526
1611
  {
1527
1612
  {
1528
- const comp = SidebarStub;
1529
- const args = [__output, {}];
1613
+ const comp = HeaderStub;
1614
+ const args = [{}];
1530
1615
 
1531
1616
  comp(...args);
1532
1617
  }
1533
1618
 
1534
- __output.push('<main');
1535
- __output.push(' class="docs-main"');
1536
- __output.push('>');
1619
+ _$_.output_push('<div');
1620
+ _$_.output_push(' class="docs-wrapper"');
1621
+ _$_.output_push('>');
1537
1622
 
1538
1623
  {
1539
- __output.push('<div');
1540
- __output.push(' class="docs-container"');
1541
- __output.push('>');
1624
+ {
1625
+ const comp = SidebarStub;
1626
+ const args = [{}];
1627
+
1628
+ comp(...args);
1629
+ }
1630
+
1631
+ _$_.output_push('<main');
1632
+ _$_.output_push(' class="docs-main"');
1633
+ _$_.output_push('>');
1542
1634
 
1543
1635
  {
1544
- __output.push('<div');
1545
- __output.push(' class="content"');
1546
- __output.push('>');
1636
+ _$_.output_push('<div');
1637
+ _$_.output_push(' class="docs-container"');
1638
+ _$_.output_push('>');
1547
1639
 
1548
1640
  {
1549
- __output.push('<div');
1550
- __output.push(' class="content-container"');
1551
- __output.push('>');
1641
+ _$_.output_push('<div');
1642
+ _$_.output_push(' class="content"');
1643
+ _$_.output_push('>');
1552
1644
 
1553
1645
  {
1554
- __output.push('<article');
1555
- __output.push(' class="doc-content"');
1556
- __output.push('>');
1646
+ _$_.output_push('<div');
1647
+ _$_.output_push(' class="content-container"');
1648
+ _$_.output_push('>');
1557
1649
 
1558
1650
  {
1559
- __output.push('<div');
1560
- __output.push('>');
1651
+ _$_.output_push('<article');
1652
+ _$_.output_push(' class="doc-content"');
1653
+ _$_.output_push('>');
1561
1654
 
1562
1655
  {
1563
- _$_.render_expression(__output, children);
1564
- }
1656
+ _$_.output_push('<div');
1657
+ _$_.output_push('>');
1565
1658
 
1566
- __output.push('</div>');
1567
- }
1659
+ {
1660
+ _$_.render_expression(children);
1661
+ }
1568
1662
 
1569
- __output.push('</article>');
1570
- __output.push('<!--[-->');
1663
+ _$_.output_push('</div>');
1664
+ }
1571
1665
 
1572
- if (editPath) {
1573
- __output.push('<div');
1574
- __output.push(' class="edit-link"');
1575
- __output.push('>');
1666
+ _$_.output_push('</article>');
1667
+ _$_.output_push('<!--[-->');
1576
1668
 
1577
- {
1578
- __output.push('<a');
1579
- __output.push(' href="/edit"');
1580
- __output.push('>');
1669
+ if (editPath) {
1670
+ _$_.output_push('<div');
1671
+ _$_.output_push(' class="edit-link"');
1672
+ _$_.output_push('>');
1581
1673
 
1582
1674
  {
1583
- __output.push('Edit on GitHub');
1675
+ _$_.output_push('<a');
1676
+ _$_.output_push(' href="/edit"');
1677
+ _$_.output_push('>');
1678
+
1679
+ {
1680
+ _$_.output_push('Edit on GitHub');
1681
+ }
1682
+
1683
+ _$_.output_push('</a>');
1584
1684
  }
1585
1685
 
1586
- __output.push('</a>');
1686
+ _$_.output_push('</div>');
1587
1687
  }
1588
1688
 
1589
- __output.push('</div>');
1590
- }
1689
+ _$_.output_push('<!--]-->');
1690
+ _$_.output_push('<!--[-->');
1591
1691
 
1592
- __output.push('<!--]-->');
1593
- __output.push('<!--[-->');
1692
+ if (nextLink) {
1693
+ _$_.output_push('<nav');
1694
+ _$_.output_push(' class="prev-next"');
1695
+ _$_.output_push('>');
1594
1696
 
1595
- if (nextLink) {
1596
- __output.push('<nav');
1597
- __output.push(' class="prev-next"');
1598
- __output.push('>');
1697
+ {
1698
+ _$_.output_push('<a');
1699
+ _$_.output_push(_$_.attr('href', nextLink.href, false));
1700
+ _$_.output_push('>');
1599
1701
 
1600
- {
1601
- __output.push('<a');
1602
- __output.push(_$_.attr('href', nextLink.href, false));
1603
- __output.push('>');
1702
+ {
1703
+ _$_.output_push(_$_.escape(nextLink.text));
1704
+ }
1604
1705
 
1605
- {
1606
- __output.push(_$_.escape(nextLink.text));
1706
+ _$_.output_push('</a>');
1607
1707
  }
1608
1708
 
1609
- __output.push('</a>');
1709
+ _$_.output_push('</nav>');
1610
1710
  }
1611
1711
 
1612
- __output.push('</nav>');
1613
- }
1614
-
1615
- __output.push('<!--]-->');
1712
+ _$_.output_push('<!--]-->');
1616
1713
 
1617
- {
1618
- const comp = FooterStub;
1619
- const args = [__output, {}];
1714
+ {
1715
+ const comp = FooterStub;
1716
+ const args = [{}];
1620
1717
 
1621
- comp(...args);
1718
+ comp(...args);
1719
+ }
1622
1720
  }
1721
+
1722
+ _$_.output_push('</div>');
1623
1723
  }
1624
1724
 
1625
- __output.push('</div>');
1725
+ _$_.output_push('</div>');
1626
1726
  }
1627
1727
 
1628
- __output.push('</div>');
1728
+ _$_.output_push('</div>');
1629
1729
  }
1630
1730
 
1631
- __output.push('</div>');
1731
+ _$_.output_push('</main>');
1632
1732
  }
1633
1733
 
1634
- __output.push('</main>');
1734
+ _$_.output_push('</div>');
1635
1735
  }
1636
1736
 
1637
- __output.push('</div>');
1638
- }
1737
+ _$_.output_push('</div>');
1738
+ });
1639
1739
 
1640
- __output.push('</div>');
1641
1740
  _$_.pop_component();
1642
1741
  }
1643
1742
 
1644
- export function DocsLayoutWithData(__output) {
1743
+ export function DocsLayoutWithData() {
1645
1744
  _$_.push_component();
1646
1745
 
1647
1746
  const htmlContent = '<h1>Title</h1><p>Content</p>';
1648
1747
 
1649
- {
1650
- const comp = DocsLayoutInner;
1748
+ _$_.regular_block(() => {
1749
+ {
1750
+ const comp = DocsLayoutInner;
1651
1751
 
1652
- const args = [
1653
- __output,
1654
- {
1655
- editPath: "docs/styling.md",
1656
- nextLink: { href: '/next', text: 'Next' },
1657
- children: _$_.ripple_element(function render_children(__output) {
1658
- _$_.push_component();
1659
- __output.push('<div');
1660
- __output.push(' class="doc-content"');
1661
- __output.push('>');
1752
+ const args = [
1753
+ {
1754
+ editPath: "docs/styling.md",
1755
+ nextLink: { href: '/next', text: 'Next' },
1756
+ children: _$_.ripple_element(function render_children() {
1757
+ _$_.push_component();
1758
+ _$_.output_push('<div');
1759
+ _$_.output_push(' class="doc-content"');
1760
+ _$_.output_push('>');
1662
1761
 
1663
- {
1664
- const html_value_19 = String(htmlContent ?? '');
1762
+ {
1763
+ const html_value_19 = String(htmlContent ?? '');
1665
1764
 
1666
- __output.push('<!--' + _$_.hash(html_value_19) + '-->');
1667
- __output.push(html_value_19);
1668
- __output.push('<!---->');
1669
- }
1765
+ _$_.output_push('<!--' + _$_.hash(html_value_19) + '-->');
1766
+ _$_.output_push(html_value_19);
1767
+ _$_.output_push('<!---->');
1768
+ }
1670
1769
 
1671
- __output.push('</div>');
1672
- _$_.pop_component();
1673
- })
1674
- }
1675
- ];
1770
+ _$_.output_push('</div>');
1771
+ _$_.pop_component();
1772
+ })
1773
+ }
1774
+ ];
1676
1775
 
1677
- comp(...args);
1678
- }
1776
+ comp(...args);
1777
+ }
1778
+ });
1679
1779
 
1680
1780
  _$_.pop_component();
1681
1781
  }
1682
1782
 
1683
- export function DocsLayoutWithoutData(__output) {
1783
+ export function DocsLayoutWithoutData() {
1684
1784
  _$_.push_component();
1685
1785
 
1686
1786
  const htmlContent = undefined;
1687
1787
 
1688
- {
1689
- const comp = DocsLayoutInner;
1788
+ _$_.regular_block(() => {
1789
+ {
1790
+ const comp = DocsLayoutInner;
1690
1791
 
1691
- const args = [
1692
- __output,
1693
- {
1694
- children: _$_.ripple_element(function render_children(__output) {
1695
- _$_.push_component();
1696
- __output.push('<div');
1697
- __output.push(' class="doc-content"');
1698
- __output.push('>');
1792
+ const args = [
1793
+ {
1794
+ children: _$_.ripple_element(function render_children() {
1795
+ _$_.push_component();
1796
+ _$_.output_push('<div');
1797
+ _$_.output_push(' class="doc-content"');
1798
+ _$_.output_push('>');
1699
1799
 
1700
- {
1701
- const html_value_20 = String(htmlContent ?? '');
1800
+ {
1801
+ const html_value_20 = String(htmlContent ?? '');
1702
1802
 
1703
- __output.push('<!--' + _$_.hash(html_value_20) + '-->');
1704
- __output.push(html_value_20);
1705
- __output.push('<!---->');
1706
- }
1803
+ _$_.output_push('<!--' + _$_.hash(html_value_20) + '-->');
1804
+ _$_.output_push(html_value_20);
1805
+ _$_.output_push('<!---->');
1806
+ }
1707
1807
 
1708
- __output.push('</div>');
1709
- _$_.pop_component();
1710
- })
1711
- }
1712
- ];
1808
+ _$_.output_push('</div>');
1809
+ _$_.pop_component();
1810
+ })
1811
+ }
1812
+ ];
1713
1813
 
1714
- comp(...args);
1715
- }
1814
+ comp(...args);
1815
+ }
1816
+ });
1716
1817
 
1717
1818
  _$_.pop_component();
1718
1819
  }
1719
1820
 
1720
1821
  function DocsLayoutExact(
1721
- __output,
1722
1822
  {
1723
1823
  children,
1724
1824
  editPath = '',
@@ -1728,274 +1828,279 @@ function DocsLayoutExact(
1728
1828
  }
1729
1829
  ) {
1730
1830
  _$_.push_component();
1731
- __output.push('<div');
1732
- __output.push(' class="layout"');
1733
- __output.push('>');
1734
-
1735
- {
1736
- {
1737
- const comp = HeaderStub;
1738
- const args = [__output, {}];
1739
1831
 
1740
- comp(...args);
1741
- }
1742
-
1743
- __output.push('<div');
1744
- __output.push(' class="docs-wrapper"');
1745
- __output.push('>');
1832
+ _$_.regular_block(() => {
1833
+ _$_.output_push('<div');
1834
+ _$_.output_push(' class="layout"');
1835
+ _$_.output_push('>');
1746
1836
 
1747
1837
  {
1748
1838
  {
1749
- const comp = SidebarStub;
1750
- const args = [__output, {}];
1839
+ const comp = HeaderStub;
1840
+ const args = [{}];
1751
1841
 
1752
1842
  comp(...args);
1753
1843
  }
1754
1844
 
1755
- __output.push('<main');
1756
- __output.push(' class="docs-main"');
1757
- __output.push('>');
1845
+ _$_.output_push('<div');
1846
+ _$_.output_push(' class="docs-wrapper"');
1847
+ _$_.output_push('>');
1758
1848
 
1759
1849
  {
1760
- __output.push('<div');
1761
- __output.push(' class="docs-container"');
1762
- __output.push('>');
1850
+ {
1851
+ const comp = SidebarStub;
1852
+ const args = [{}];
1853
+
1854
+ comp(...args);
1855
+ }
1856
+
1857
+ _$_.output_push('<main');
1858
+ _$_.output_push(' class="docs-main"');
1859
+ _$_.output_push('>');
1763
1860
 
1764
1861
  {
1765
- __output.push('<div');
1766
- __output.push(' class="content"');
1767
- __output.push('>');
1862
+ _$_.output_push('<div');
1863
+ _$_.output_push(' class="docs-container"');
1864
+ _$_.output_push('>');
1768
1865
 
1769
1866
  {
1770
- __output.push('<div');
1771
- __output.push(' class="content-container"');
1772
- __output.push('>');
1867
+ _$_.output_push('<div');
1868
+ _$_.output_push(' class="content"');
1869
+ _$_.output_push('>');
1773
1870
 
1774
1871
  {
1775
- __output.push('<article');
1776
- __output.push(' class="doc-content"');
1777
- __output.push('>');
1872
+ _$_.output_push('<div');
1873
+ _$_.output_push(' class="content-container"');
1874
+ _$_.output_push('>');
1778
1875
 
1779
1876
  {
1780
- __output.push('<div');
1781
- __output.push('>');
1877
+ _$_.output_push('<article');
1878
+ _$_.output_push(' class="doc-content"');
1879
+ _$_.output_push('>');
1782
1880
 
1783
1881
  {
1784
- _$_.render_expression(__output, children);
1785
- }
1882
+ _$_.output_push('<div');
1883
+ _$_.output_push('>');
1786
1884
 
1787
- __output.push('</div>');
1788
- }
1885
+ {
1886
+ _$_.render_expression(children);
1887
+ }
1789
1888
 
1790
- __output.push('</article>');
1791
- __output.push('<!--[-->');
1889
+ _$_.output_push('</div>');
1890
+ }
1792
1891
 
1793
- if (editPath) {
1794
- __output.push('<div');
1795
- __output.push(' class="edit-link"');
1796
- __output.push('>');
1892
+ _$_.output_push('</article>');
1893
+ _$_.output_push('<!--[-->');
1797
1894
 
1798
- {
1799
- __output.push('<a');
1800
- __output.push(_$_.attr('href', `/edit/${editPath}`, false));
1801
- __output.push('>');
1895
+ if (editPath) {
1896
+ _$_.output_push('<div');
1897
+ _$_.output_push(' class="edit-link"');
1898
+ _$_.output_push('>');
1802
1899
 
1803
1900
  {
1804
- __output.push('Edit on GitHub');
1901
+ _$_.output_push('<a');
1902
+ _$_.output_push(_$_.attr('href', `/edit/${editPath}`, false));
1903
+ _$_.output_push('>');
1904
+
1905
+ {
1906
+ _$_.output_push('Edit on GitHub');
1907
+ }
1908
+
1909
+ _$_.output_push('</a>');
1805
1910
  }
1806
1911
 
1807
- __output.push('</a>');
1912
+ _$_.output_push('</div>');
1808
1913
  }
1809
1914
 
1810
- __output.push('</div>');
1811
- }
1915
+ _$_.output_push('<!--]-->');
1916
+ _$_.output_push('<!--[-->');
1812
1917
 
1813
- __output.push('<!--]-->');
1814
- __output.push('<!--[-->');
1918
+ if (prevLink || nextLink) {
1919
+ _$_.output_push('<nav');
1920
+ _$_.output_push(' class="prev-next"');
1921
+ _$_.output_push('>');
1815
1922
 
1816
- if (prevLink || nextLink) {
1817
- __output.push('<nav');
1818
- __output.push(' class="prev-next"');
1819
- __output.push('>');
1923
+ {
1924
+ _$_.output_push('<!--[-->');
1820
1925
 
1821
- {
1822
- __output.push('<!--[-->');
1926
+ if (prevLink) {
1927
+ _$_.output_push('<a');
1928
+ _$_.output_push(_$_.attr('href', prevLink.href, false));
1929
+ _$_.output_push(' class="pager prev"');
1930
+ _$_.output_push('>');
1823
1931
 
1824
- if (prevLink) {
1825
- __output.push('<a');
1826
- __output.push(_$_.attr('href', prevLink.href, false));
1827
- __output.push(' class="pager prev"');
1828
- __output.push('>');
1932
+ {
1933
+ _$_.output_push('<span');
1934
+ _$_.output_push(' class="title"');
1935
+ _$_.output_push('>');
1829
1936
 
1830
- {
1831
- __output.push('<span');
1832
- __output.push(' class="title"');
1833
- __output.push('>');
1937
+ {
1938
+ _$_.output_push(_$_.escape(prevLink.text));
1939
+ }
1834
1940
 
1835
- {
1836
- __output.push(_$_.escape(prevLink.text));
1941
+ _$_.output_push('</span>');
1837
1942
  }
1838
1943
 
1839
- __output.push('</span>');
1944
+ _$_.output_push('</a>');
1945
+ } else {
1946
+ _$_.output_push('<span');
1947
+ _$_.output_push('>');
1948
+ _$_.output_push('</span>');
1840
1949
  }
1841
1950
 
1842
- __output.push('</a>');
1843
- } else {
1844
- __output.push('<span');
1845
- __output.push('>');
1846
- __output.push('</span>');
1847
- }
1951
+ _$_.output_push('<!--]-->');
1952
+ _$_.output_push('<!--[-->');
1848
1953
 
1849
- __output.push('<!--]-->');
1850
- __output.push('<!--[-->');
1954
+ if (nextLink) {
1955
+ _$_.output_push('<a');
1956
+ _$_.output_push(_$_.attr('href', nextLink.href, false));
1957
+ _$_.output_push(' class="pager next"');
1958
+ _$_.output_push('>');
1851
1959
 
1852
- if (nextLink) {
1853
- __output.push('<a');
1854
- __output.push(_$_.attr('href', nextLink.href, false));
1855
- __output.push(' class="pager next"');
1856
- __output.push('>');
1960
+ {
1961
+ _$_.output_push('<span');
1962
+ _$_.output_push(' class="title"');
1963
+ _$_.output_push('>');
1857
1964
 
1858
- {
1859
- __output.push('<span');
1860
- __output.push(' class="title"');
1861
- __output.push('>');
1965
+ {
1966
+ _$_.output_push(_$_.escape(nextLink.text));
1967
+ }
1862
1968
 
1863
- {
1864
- __output.push(_$_.escape(nextLink.text));
1969
+ _$_.output_push('</span>');
1865
1970
  }
1866
1971
 
1867
- __output.push('</span>');
1972
+ _$_.output_push('</a>');
1868
1973
  }
1869
1974
 
1870
- __output.push('</a>');
1975
+ _$_.output_push('<!--]-->');
1871
1976
  }
1872
1977
 
1873
- __output.push('<!--]-->');
1978
+ _$_.output_push('</nav>');
1874
1979
  }
1875
1980
 
1876
- __output.push('</nav>');
1877
- }
1878
-
1879
- __output.push('<!--]-->');
1981
+ _$_.output_push('<!--]-->');
1880
1982
 
1881
- {
1882
- const comp = FooterStub;
1883
- const args = [__output, {}];
1983
+ {
1984
+ const comp = FooterStub;
1985
+ const args = [{}];
1884
1986
 
1885
- comp(...args);
1987
+ comp(...args);
1988
+ }
1886
1989
  }
1990
+
1991
+ _$_.output_push('</div>');
1887
1992
  }
1888
1993
 
1889
- __output.push('</div>');
1890
- }
1994
+ _$_.output_push('</div>');
1995
+ _$_.output_push('<aside');
1996
+ _$_.output_push(' class="aside"');
1997
+ _$_.output_push('>');
1891
1998
 
1892
- __output.push('</div>');
1893
- __output.push('<aside');
1894
- __output.push(' class="aside"');
1895
- __output.push('>');
1999
+ {
2000
+ _$_.output_push('<!--[-->');
1896
2001
 
1897
- {
1898
- __output.push('<!--[-->');
2002
+ if (toc.length > 0) {
2003
+ _$_.output_push('<div');
2004
+ _$_.output_push(' class="aside-content"');
2005
+ _$_.output_push('>');
1899
2006
 
1900
- if (toc.length > 0) {
1901
- __output.push('<div');
1902
- __output.push(' class="aside-content"');
1903
- __output.push('>');
2007
+ {
2008
+ _$_.output_push('<nav');
2009
+ _$_.output_push(' class="outline"');
2010
+ _$_.output_push('>');
1904
2011
 
1905
- {
1906
- __output.push('<nav');
1907
- __output.push(' class="outline"');
1908
- __output.push('>');
2012
+ {
2013
+ _$_.output_push('<!--[-->');
1909
2014
 
1910
- {
1911
- __output.push('<!--[-->');
2015
+ for (const item of toc) {
2016
+ _$_.output_push('<a');
2017
+ _$_.output_push(_$_.attr('href', item.href, false));
2018
+ _$_.output_push('>');
1912
2019
 
1913
- for (const item of toc) {
1914
- __output.push('<a');
1915
- __output.push(_$_.attr('href', item.href, false));
1916
- __output.push('>');
2020
+ {
2021
+ _$_.output_push(_$_.escape(item.text));
2022
+ }
1917
2023
 
1918
- {
1919
- __output.push(_$_.escape(item.text));
2024
+ _$_.output_push('</a>');
1920
2025
  }
1921
2026
 
1922
- __output.push('</a>');
2027
+ _$_.output_push('<!--]-->');
1923
2028
  }
1924
2029
 
1925
- __output.push('<!--]-->');
2030
+ _$_.output_push('</nav>');
1926
2031
  }
1927
2032
 
1928
- __output.push('</nav>');
2033
+ _$_.output_push('</div>');
1929
2034
  }
1930
2035
 
1931
- __output.push('</div>');
2036
+ _$_.output_push('<!--]-->');
1932
2037
  }
1933
2038
 
1934
- __output.push('<!--]-->');
2039
+ _$_.output_push('</aside>');
1935
2040
  }
1936
2041
 
1937
- __output.push('</aside>');
2042
+ _$_.output_push('</div>');
1938
2043
  }
1939
2044
 
1940
- __output.push('</div>');
2045
+ _$_.output_push('</main>');
1941
2046
  }
1942
2047
 
1943
- __output.push('</main>');
2048
+ _$_.output_push('</div>');
1944
2049
  }
1945
2050
 
1946
- __output.push('</div>');
1947
- }
2051
+ _$_.output_push('</div>');
2052
+ });
1948
2053
 
1949
- __output.push('</div>');
1950
2054
  _$_.pop_component();
1951
2055
  }
1952
2056
 
1953
- export function DocsLayoutExactWithData(__output) {
2057
+ export function DocsLayoutExactWithData() {
1954
2058
  _$_.push_component();
1955
2059
 
1956
2060
  const htmlContent = '<h1>Styling Guide</h1><p>Content</p>';
1957
2061
 
1958
- {
1959
- const comp = DocsLayoutExact;
2062
+ _$_.regular_block(() => {
2063
+ {
2064
+ const comp = DocsLayoutExact;
1960
2065
 
1961
- const args = [
1962
- __output,
1963
- {
1964
- editPath: "docs/guide/styling.md",
1965
- prevLink: { href: '/prev', text: 'Previous' },
1966
- nextLink: { href: '/next', text: 'Next' },
1967
- toc: [
1968
- { href: '#intro', text: 'Introduction' },
1969
- { href: '#usage', text: 'Usage' }
1970
- ],
1971
-
1972
- children: _$_.ripple_element(function render_children(__output) {
1973
- _$_.push_component();
1974
- __output.push('<div');
1975
- __output.push(' class="doc-content"');
1976
- __output.push('>');
2066
+ const args = [
2067
+ {
2068
+ editPath: "docs/guide/styling.md",
2069
+ prevLink: { href: '/prev', text: 'Previous' },
2070
+ nextLink: { href: '/next', text: 'Next' },
2071
+ toc: [
2072
+ { href: '#intro', text: 'Introduction' },
2073
+ { href: '#usage', text: 'Usage' }
2074
+ ],
2075
+
2076
+ children: _$_.ripple_element(function render_children() {
2077
+ _$_.push_component();
2078
+ _$_.output_push('<div');
2079
+ _$_.output_push(' class="doc-content"');
2080
+ _$_.output_push('>');
1977
2081
 
1978
- {
1979
- const html_value_21 = String(htmlContent ?? '');
2082
+ {
2083
+ const html_value_21 = String(htmlContent ?? '');
1980
2084
 
1981
- __output.push('<!--' + _$_.hash(html_value_21) + '-->');
1982
- __output.push(html_value_21);
1983
- __output.push('<!---->');
1984
- }
2085
+ _$_.output_push('<!--' + _$_.hash(html_value_21) + '-->');
2086
+ _$_.output_push(html_value_21);
2087
+ _$_.output_push('<!---->');
2088
+ }
1985
2089
 
1986
- __output.push('</div>');
1987
- _$_.pop_component();
1988
- })
1989
- }
1990
- ];
2090
+ _$_.output_push('</div>');
2091
+ _$_.pop_component();
2092
+ })
2093
+ }
2094
+ ];
1991
2095
 
1992
- comp(...args);
1993
- }
2096
+ comp(...args);
2097
+ }
2098
+ });
1994
2099
 
1995
2100
  _$_.pop_component();
1996
2101
  }
1997
2102
 
1998
- export function DocsLayoutExactWithoutData(__output) {
2103
+ export function DocsLayoutExactWithoutData() {
1999
2104
  _$_.push_component();
2000
2105
 
2001
2106
  const htmlContent = undefined;
@@ -2004,193 +2109,205 @@ export function DocsLayoutExactWithoutData(__output) {
2004
2109
  const nextLink = undefined;
2005
2110
  const toc = undefined;
2006
2111
 
2007
- {
2008
- const comp = DocsLayoutExact;
2112
+ _$_.regular_block(() => {
2113
+ {
2114
+ const comp = DocsLayoutExact;
2009
2115
 
2010
- const args = [
2011
- __output,
2012
- {
2013
- editPath,
2014
- prevLink,
2015
- nextLink,
2016
- toc,
2017
- children: _$_.ripple_element(function render_children(__output) {
2018
- _$_.push_component();
2019
- __output.push('<div');
2020
- __output.push(' class="doc-content"');
2021
- __output.push('>');
2116
+ const args = [
2117
+ {
2118
+ editPath,
2119
+ prevLink,
2120
+ nextLink,
2121
+ toc,
2122
+ children: _$_.ripple_element(function render_children() {
2123
+ _$_.push_component();
2124
+ _$_.output_push('<div');
2125
+ _$_.output_push(' class="doc-content"');
2126
+ _$_.output_push('>');
2022
2127
 
2023
- {
2024
- const html_value_22 = String(htmlContent ?? '');
2128
+ {
2129
+ const html_value_22 = String(htmlContent ?? '');
2025
2130
 
2026
- __output.push('<!--' + _$_.hash(html_value_22) + '-->');
2027
- __output.push(html_value_22);
2028
- __output.push('<!---->');
2029
- }
2131
+ _$_.output_push('<!--' + _$_.hash(html_value_22) + '-->');
2132
+ _$_.output_push(html_value_22);
2133
+ _$_.output_push('<!---->');
2134
+ }
2030
2135
 
2031
- __output.push('</div>');
2032
- _$_.pop_component();
2033
- })
2034
- }
2035
- ];
2136
+ _$_.output_push('</div>');
2137
+ _$_.pop_component();
2138
+ })
2139
+ }
2140
+ ];
2036
2141
 
2037
- comp(...args);
2038
- }
2142
+ comp(...args);
2143
+ }
2144
+ });
2039
2145
 
2040
2146
  _$_.pop_component();
2041
2147
  }
2042
2148
 
2043
- export function TemplateWithHtmlContent(__output) {
2149
+ export function TemplateWithHtmlContent() {
2044
2150
  _$_.push_component();
2045
2151
 
2046
2152
  const data = { title: 'Test', value: 42 };
2047
2153
 
2048
- __output.push('<div');
2049
- __output.push('>');
2050
-
2051
- {
2052
- __output.push('<template');
2053
- __output.push(' id="t1"');
2054
- __output.push('>');
2154
+ _$_.regular_block(() => {
2155
+ _$_.output_push('<div');
2156
+ _$_.output_push('>');
2055
2157
 
2056
2158
  {
2057
- const html_value_23 = String(JSON.stringify(data) ?? '');
2159
+ _$_.output_push('<template');
2160
+ _$_.output_push(' id="t1"');
2161
+ _$_.output_push('>');
2058
2162
 
2059
- __output.push('<!--' + _$_.hash(html_value_23) + '-->');
2060
- __output.push(html_value_23);
2061
- __output.push('<!---->');
2062
- }
2163
+ {
2164
+ const html_value_23 = String(JSON.stringify(data) ?? '');
2063
2165
 
2064
- __output.push('</template>');
2065
- __output.push('<p');
2066
- __output.push(' class="content"');
2067
- __output.push('>');
2166
+ _$_.output_push('<!--' + _$_.hash(html_value_23) + '-->');
2167
+ _$_.output_push(html_value_23);
2168
+ _$_.output_push('<!---->');
2169
+ }
2068
2170
 
2069
- {
2070
- __output.push('Main content');
2171
+ _$_.output_push('</template>');
2172
+ _$_.output_push('<p');
2173
+ _$_.output_push(' class="content"');
2174
+ _$_.output_push('>');
2175
+
2176
+ {
2177
+ _$_.output_push('Main content');
2178
+ }
2179
+
2180
+ _$_.output_push('</p>');
2071
2181
  }
2072
2182
 
2073
- __output.push('</p>');
2074
- }
2183
+ _$_.output_push('</div>');
2184
+ });
2075
2185
 
2076
- __output.push('</div>');
2077
2186
  _$_.pop_component();
2078
2187
  }
2079
2188
 
2080
- export function TemplateWithHtmlAndSiblings(__output) {
2189
+ export function TemplateWithHtmlAndSiblings() {
2081
2190
  _$_.push_component();
2082
2191
 
2083
2192
  const data = { name: 'Ripple', version: '1.0' };
2084
2193
 
2085
- __output.push('<div');
2086
- __output.push(' class="wrapper"');
2087
- __output.push('>');
2088
-
2089
- {
2090
- __output.push('<h1');
2091
- __output.push('>');
2194
+ _$_.regular_block(() => {
2195
+ _$_.output_push('<div');
2196
+ _$_.output_push(' class="wrapper"');
2197
+ _$_.output_push('>');
2092
2198
 
2093
2199
  {
2094
- __output.push('Title');
2095
- }
2200
+ _$_.output_push('<h1');
2201
+ _$_.output_push('>');
2096
2202
 
2097
- __output.push('</h1>');
2098
- __output.push('<template');
2099
- __output.push(' id="data-template"');
2100
- __output.push('>');
2203
+ {
2204
+ _$_.output_push('Title');
2205
+ }
2101
2206
 
2102
- {
2103
- const html_value_24 = String(JSON.stringify(data) ?? '');
2207
+ _$_.output_push('</h1>');
2208
+ _$_.output_push('<template');
2209
+ _$_.output_push(' id="data-template"');
2210
+ _$_.output_push('>');
2104
2211
 
2105
- __output.push('<!--' + _$_.hash(html_value_24) + '-->');
2106
- __output.push(html_value_24);
2107
- __output.push('<!---->');
2108
- }
2212
+ {
2213
+ const html_value_24 = String(JSON.stringify(data) ?? '');
2214
+
2215
+ _$_.output_push('<!--' + _$_.hash(html_value_24) + '-->');
2216
+ _$_.output_push(html_value_24);
2217
+ _$_.output_push('<!---->');
2218
+ }
2109
2219
 
2110
- __output.push('</template>');
2111
- __output.push('<p');
2112
- __output.push(' class="after-template"');
2113
- __output.push('>');
2220
+ _$_.output_push('</template>');
2221
+ _$_.output_push('<p');
2222
+ _$_.output_push(' class="after-template"');
2223
+ _$_.output_push('>');
2114
2224
 
2115
- {
2116
- __output.push('Content after template');
2225
+ {
2226
+ _$_.output_push('Content after template');
2227
+ }
2228
+
2229
+ _$_.output_push('</p>');
2117
2230
  }
2118
2231
 
2119
- __output.push('</p>');
2120
- }
2232
+ _$_.output_push('</div>');
2233
+ });
2121
2234
 
2122
- __output.push('</div>');
2123
2235
  _$_.pop_component();
2124
2236
  }
2125
2237
 
2126
- function LayoutWithTemplate(__output, { children, data }) {
2238
+ function LayoutWithTemplate({ children, data }) {
2127
2239
  _$_.push_component();
2128
- __output.push('<div');
2129
- __output.push(' class="layout"');
2130
- __output.push('>');
2131
2240
 
2132
- {
2133
- __output.push('<template');
2134
- __output.push(' id="page-data"');
2135
- __output.push('>');
2241
+ _$_.regular_block(() => {
2242
+ _$_.output_push('<div');
2243
+ _$_.output_push(' class="layout"');
2244
+ _$_.output_push('>');
2136
2245
 
2137
2246
  {
2138
- const html_value_25 = String(JSON.stringify(data) ?? '');
2247
+ _$_.output_push('<template');
2248
+ _$_.output_push(' id="page-data"');
2249
+ _$_.output_push('>');
2139
2250
 
2140
- __output.push('<!--' + _$_.hash(html_value_25) + '-->');
2141
- __output.push(html_value_25);
2142
- __output.push('<!---->');
2143
- }
2251
+ {
2252
+ const html_value_25 = String(JSON.stringify(data) ?? '');
2253
+
2254
+ _$_.output_push('<!--' + _$_.hash(html_value_25) + '-->');
2255
+ _$_.output_push(html_value_25);
2256
+ _$_.output_push('<!---->');
2257
+ }
2144
2258
 
2145
- __output.push('</template>');
2146
- __output.push('<main');
2147
- __output.push('>');
2259
+ _$_.output_push('</template>');
2260
+ _$_.output_push('<main');
2261
+ _$_.output_push('>');
2148
2262
 
2149
- {
2150
- _$_.render_expression(__output, children);
2263
+ {
2264
+ _$_.render_expression(children);
2265
+ }
2266
+
2267
+ _$_.output_push('</main>');
2151
2268
  }
2152
2269
 
2153
- __output.push('</main>');
2154
- }
2270
+ _$_.output_push('</div>');
2271
+ });
2155
2272
 
2156
- __output.push('</div>');
2157
2273
  _$_.pop_component();
2158
2274
  }
2159
2275
 
2160
- export function NestedTemplateInLayout(__output) {
2276
+ export function NestedTemplateInLayout() {
2161
2277
  _$_.push_component();
2162
2278
 
2163
2279
  const doc = { title: 'Comparison', html: '<p>Content</p>' };
2164
2280
 
2165
- {
2166
- const comp = LayoutWithTemplate;
2281
+ _$_.regular_block(() => {
2282
+ {
2283
+ const comp = LayoutWithTemplate;
2167
2284
 
2168
- const args = [
2169
- __output,
2170
- {
2171
- data: doc,
2172
- children: _$_.ripple_element(function render_children(__output) {
2173
- _$_.push_component();
2174
- __output.push('<div');
2175
- __output.push(' class="doc-content"');
2176
- __output.push('>');
2285
+ const args = [
2286
+ {
2287
+ data: doc,
2288
+ children: _$_.ripple_element(function render_children() {
2289
+ _$_.push_component();
2290
+ _$_.output_push('<div');
2291
+ _$_.output_push(' class="doc-content"');
2292
+ _$_.output_push('>');
2177
2293
 
2178
- {
2179
- const html_value_26 = String(doc.html ?? '');
2294
+ {
2295
+ const html_value_26 = String(doc.html ?? '');
2180
2296
 
2181
- __output.push('<!--' + _$_.hash(html_value_26) + '-->');
2182
- __output.push(html_value_26);
2183
- __output.push('<!---->');
2184
- }
2297
+ _$_.output_push('<!--' + _$_.hash(html_value_26) + '-->');
2298
+ _$_.output_push(html_value_26);
2299
+ _$_.output_push('<!---->');
2300
+ }
2185
2301
 
2186
- __output.push('</div>');
2187
- _$_.pop_component();
2188
- })
2189
- }
2190
- ];
2302
+ _$_.output_push('</div>');
2303
+ _$_.pop_component();
2304
+ })
2305
+ }
2306
+ ];
2191
2307
 
2192
- comp(...args);
2193
- }
2308
+ comp(...args);
2309
+ }
2310
+ });
2194
2311
 
2195
2312
  _$_.pop_component();
2196
2313
  }