### Initial Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-chain/__snapshots__/render.debug.md
Displays the initial state of a button and a div element. This serves as the starting point before any updates occur.
```html
5
```
--------------------------------
### Initial Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/known-tag-args-spread/__snapshots__/render.md
Shows the initial HTML structure before any updates.
```html
1|2|{}
7|8|{}
1|2|{}
```
--------------------------------
### Initial Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/let-bind-to-undefined/__snapshots__/render.debug.md
Displays the initial state of a simple UI with a number and a button.
```html
3
```
--------------------------------
### Initial Runtime Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/__snapshots__/writes.html
Sets up the runtime with initial data and triggers a write operation.
```html
before
child:1 WALKER_RUNTIME("M")("_"); M._.b = { _a: [_ => [2, { g: 1, Bg: new Set }]] }; M._.w() 10 grand:1:1 M._.b._a.push(_ => (_([3, { _: _(2), c: _(4) }]), (_.a = _(2).Bg).add(_(3)), 0)); M._.b._b = [_ => [4, { h: 1 }]]; M._.w() 20
after
M._.b._b.push("b0 4"); M._.b._a.push("a0 2"); M._.w()
```
--------------------------------
### Initial Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/render.debug.md
Shows the initial HTML structure rendered by a Marko component.
```html
0.0
0.1
1.0
1.1
```
--------------------------------
### Initial Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/const-logical-nullable-member/__snapshots__/render.md
Shows the initial HTML structure rendered by the component.
```html
and
ternary
andassign
```
--------------------------------
### Initial Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/render.md
Shows the initial HTML structure of a button and a span.
```html
```
--------------------------------
### Initial Runtime Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/writes.html
Initializes the Marko runtime with specific configurations for asynchronous operations.
```javascript
loading... WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { Bc: new Set([_(2)]) }, { _: _(1), C: "b", Q: _(1, "a2") }], "a4 1"]; REORDER_RUNTIME(M._); M._.w()
```
--------------------------------
### Marko Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/render.debug.md
Illustrates the initial rendering output of Marko templates.
```html
0: 1
1: 2
2: 3
0: 1
1: 2
2: 3
```
--------------------------------
### Initial Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/render-ssr.debug.md
This snippet shows the initial HTML output during the rendering phase.
```html
loading...
```
--------------------------------
### Initial Runtime Setup and Branch Accessor
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/writes.debug.html
Initializes the runtime with a closure scope and sets up a branch accessor for text content. This snippet is part of the initial loading and setup phase.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { "ClosureScopes:value": new Set([_(2)]) }, { _: _(1), "#BranchAccessor": "#text/1", "#PlaceholderContent": _(1, "packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/template.marko_2_content" ) }], "packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/template.marko_0 1" ]; REORDER_RUNTIME(M._); M._.w()
```
--------------------------------
### Marko Runtime Initialization and Walker Call
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/__snapshots__/writes.debug.html
Shows the initial setup and the first walker call for a Marko component, indicating runtime initialization and the start of the rendering process.
```javascript
WALKER_RUNTIME("M")("\_"); M._.r = [_ => [1, { outer: !0, count: 0 }, { "#childScope/0": _(3) }], "packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/tags/child.marko_1 4 packages/runtime-tags/src/__tests__/fixtures/for-resume-owns-branch-cleanup/template.marko_0 1"]; M._.w()
```
--------------------------------
### Async Update Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/render-ssr.md
Shows the initial state of an async update, including the rendered HTML and the change description.
```html
Got: ASYNC
```
```text
INSERT: ::text("Got: ")
INSERT: ::text@0 + ::text("ASYNC")
INSERT: ::text@5 + button
INSERT: button::text("toggle")
```
--------------------------------
### Update Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/await-closure-function/__snapshots__/render-ssr.debug.md
This snippet illustrates the HTML output after an update operation.
```html
1
```
--------------------------------
### Initial Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/basic-shared-node-ref/__snapshots__/render.debug.md
Renders an initial unordered list and two buttons. This is the starting state before any updates.
```html
1
2
3
```
--------------------------------
### Update Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/catch-empty-reject-async/__snapshots__/render-ssr.md
Shows the HTML output after an update operation.
```html
ad
```
--------------------------------
### Second Update Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-dup/__snapshots__/render.debug.md
Demonstrates a subsequent UI update after another interaction, showing the progression of the UI state.
```javascript
c.querySelector("button").click();
```
```html
60
```
```text
UPDATE: div::text "28" => "60"
```
--------------------------------
### Sync Update Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/render-ssr.md
Illustrates the state after a synchronous update, showing the changed text and the update operation.
```html
Got: SYNC
```
```text
UPDATE: ::text@5 "ASYNC" => "SYNC"
```
--------------------------------
### Initial Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/render.md
Shows the initial HTML structure rendered by a Marko component, displaying a count of 0.
```html
= 0
```
--------------------------------
### First Update Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/intersection-collapse-inline-dup/__snapshots__/render.debug.md
Simulates a user interaction by clicking a button to update the UI. Shows the state after the first update.
```javascript
c.querySelector("button").click();
```
```html
28
```
```text
UPDATE: div::text "8" => "28"
```
--------------------------------
### Initial Runtime State Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-async-in-child/__snapshots__/writes.html
Sets up the initial state for a runtime component, including a method for handling component data and asynchronous operations.
```javascript
WALKER_RUNTIME("M")("_"); M._.b = { _a: [_ => [2, { e: 1, Be: new Set }]] }; M._.w() 1:10
```
--------------------------------
### Initial Component Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/if-resume-cleanup-free-branch/__snapshots__/render.debug.md
Renders two buttons, 'O' and 'N', as the initial UI. This is the starting state before any updates.
```html
```
--------------------------------
### Updated Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/known-tag-attr-tags-unused/__snapshots__/render.debug.md
Displays the HTML structure after an update has been applied.
```html
2
```
--------------------------------
### Runtime Initialization and Scope Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/__snapshots__/writes.debug.html
Initializes the Marko runtime with specific scope settings and registers a component for rendering.
```javascript
00 WALKER_RUNTIME("M")("s"); M.s.r = [\ => [1, { m5c: "s0-1", count: 0 }],"$compat_setScope 1 packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/components/tags-counter.marko_0 1"]; M.s.w(); $MC = (window.$MC || []).concat({ "w": [ ["s0", 0, {}, { "f": 1 }] ], "t": [ "packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-class-to-tags/template.marko" ] })
```
--------------------------------
### Runtime Initialization and Scope Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/__snapshots__/writes.debug.html
Initializes the runtime walker with specific scope settings and prepares the Marko component context for rendering.
```javascript
WALKER_RUNTIME("M")("s"); M.s.r = [\n _ => [1, { m5c: "s0-0", "ConditionalRenderer:#text/2": _._.$compat_renderBody, count: 0 }],\n "$compat_setScope 1 packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-class-to-tags/components/tags-layout.marko_0 1"\n]; M.s.w();
```
--------------------------------
### Second Update Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/render.md
Shows the HTML after a second update, indicating further state changes.
```html
Count: 3
```
--------------------------------
### Initial Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-custom-tags/__snapshots__/render.debug.md
This snippet shows a basic HTML structure being rendered. It includes a div with text content and a button element.
```html
Child 1 has 3
```
--------------------------------
### Change Operation Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/async-resolve-out-of-order/__snapshots__/render-ssr.md
Illustrates how to insert new text into existing content during an update.
```marko
INSERT: ::text@0 + ::text("bcde")
```
--------------------------------
### Third Update Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/custom-tag-parameters-from-single-arg/__snapshots__/render.md
Illustrates the HTML after a third update, showing the latest state.
```html
Count: 4
```
--------------------------------
### Render Initial UI with Marko
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/assign-derived-to-undefined/__snapshots__/render.md
Displays the initial HTML structure of a component. This is the starting point before any updates occur.
```html
1|2
```
--------------------------------
### Marko Runtime Initialization and Write Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/define-tag-render/__snapshots__/writes.debug.html
Initializes the Marko runtime with a tag identifier and sets up the write buffer with rendering instructions and source information.
```javascript
1 WALKER_RUNTIME("M")("_"); M._.r = [_ => [2, { y: 1 }], "packages/runtime-tags/src/__tests__/fixtures/define-tag-render/template.marko_1 2"]; M._.w()
```
--------------------------------
### Initial Render of Button
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/assign-destructured-increment/__snapshots__/render.md
Renders a button with initial text '0:0'. This is the starting state before any interactions.
```html
```
--------------------------------
### Render Initial HTML Structure
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/custom-tag-input-lazy-read/__snapshots__/render.md
Initial HTML structure for buttons and a log div. This is the starting point before any updates.
```html
```
--------------------------------
### Initial Render of Buttons
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-twice/__snapshots__/render-ssr.debug.md
Renders two buttons with initial text content. This is the starting state before any updates.
```html
```
--------------------------------
### Initial Render of Buttons
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/nested-for-if-stateful/__snapshots__/render.md
Renders a set of three buttons with initial text. This is the starting state before any interactions.
```html
```
--------------------------------
### Initial HTML Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/function-tag-var-registration/__snapshots__/render.debug.md
Displays the initial HTML structure that will be rendered. This sets the starting state of the UI.
```html
3
```
--------------------------------
### UI Update Example 1
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/render.debug.md
Shows the HTML structure after the first update, reflecting a change in text content.
```html
Hello 2
```
--------------------------------
### Initial Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-handler-toggle/__snapshots__/render.md
This snippet shows the initial HTML structure before any updates are applied. It includes a list with two items, one of which has a 'danger' class.
```html
```
--------------------------------
### Runtime Update Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/tag-var-rest/__snapshots__/writes.html
Illustrates a runtime update to the Walker runtime, potentially for tracking or modification.
```javascript
Update Walker_RUNTIME("M")("_"); M._.r = ["a0 1"]; M._.w()
```
--------------------------------
### Initial Component Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/basic-component-input-same-source-alias-within-pattern/__snapshots__/render.debug.md
Renders a basic button component with initial text content. This is the starting state before any updates.
```html
```
--------------------------------
### Destructure Stateful Upstream Alias Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/destructure-stateful-upstream-alias/__snapshots__/writes.html
This snippet illustrates the setup and usage of a stateful upstream alias with destructuring in Marko. It defines a runtime configuration and a data transformation.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { b: 3, g: _(2, "b1"), a: _(2) }, { T: _(1, "a0") }], "a1 1"]; M._.w()
```
--------------------------------
### Updated Render Example (2)
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/render.md
Shows the HTML structure after a subsequent update, with the count incremented to 2.
```html
= 2
```
--------------------------------
### Runtime Initialization and Event Handler Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-event-handler/__snapshots__/writes.debug.html
Initializes the Marko runtime and sets up a basic event handler registration. This code is part of a debug snapshot for testing.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { num: 0 }], "packages/runtime-tags/src/__tests__/fixtures/for-event-handler/template.marko_1 2"]; M._.w()
```
--------------------------------
### Initial HTML Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/tags-dir-recursive/__snapshots__/render.md
This is the initial HTML structure that is rendered. It serves as the starting point before any updates occur.
```html
d2
d1
d0
```
--------------------------------
### Unrecognized Tag Example
Source: https://github.com/marko-js/marko/wiki/Error:-Unrecognized-Tag
This example shows the error thrown by Marko when an unrecognized tag is encountered.
```marko
```
```text
[template.marko:0:1] Unrecognized tag: invalid-tag
```
--------------------------------
### First Update Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/define-tag-object/__snapshots__/render.md
Illustrates the HTML structure and content after the first update, showing changes in the button text and div content.
```html
{"foo":1,"bar":3}
```
--------------------------------
### For Loop with Range (Inclusive Start, Exclusive End)
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-tag/__snapshots__/render.md
Renders items from an inclusive start up to an exclusive end. Useful for generating sequences where the end point is not included.
```html
from 1 until 3: 12
```
--------------------------------
### UI Update Example 2
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/render.debug.md
Displays the HTML structure after a subsequent update, showing further changes to the text content.
```html
Hello 3
```
--------------------------------
### For Loop with Range (Inclusive Start and End)
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-tag/__snapshots__/render.md
Renders items within a specified inclusive start and end range. Suitable for generating sequences with defined boundaries.
```html
from 1 to 3: 123
```
--------------------------------
### Runtime Initialization and Compatibility Layer Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/__snapshots__/writes.debug.html
Initializes the runtime with component definitions and sets up the compatibility layer for rendering. This snippet is crucial for understanding the initial state and component registration process.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { "ConditionalRenderer:#text/3": _._[ "packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/components/class-counter.marko" ], count: 0 }, 1, { m5c: "_1", m5i: { count: 0 } }]]; M._.w(); $MC = (window.$MC || []).concat({ "p": "_", "w": [ ["_1", 0, 3, { "f": 1 }] ], "t": [ "packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/components/class-counter.marko" ] }); M._.r.push( "$compat_setScope 3 packages/runtime-tags/src/__tests__/fixtures-interop/interop-mixed-inert-and-stateful-tags-to-class/template.marko_0 1" ); M._.w()
```
--------------------------------
### Define Tag Render Args Write Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-args/__snapshots__/writes.html
Demonstrates a write operation for tag render arguments in the Marko runtime. This example shows how to define and access render arguments for a tag.
```javascript
1 WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { d: 1, a: _(2) }], "a1 1"]; M._.w()
```
--------------------------------
### UI Update Example 3
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/define-tag-render-conditional/__snapshots__/render.debug.md
Presents the final HTML structure after the third update, with the latest text content.
```html
Hello 4
```
--------------------------------
### Custom Tag Variable Assignment Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-assignment/__snapshots__/writes.html
This snippet shows a basic example of variable assignment within a custom tag's runtime. It initializes a runtime with a specific structure and demonstrates a variable assignment operation.
```javascript
reset WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { b: 3, f: 1, a: _(2) }, { T: _(1, "a0"), c: 1, U: _(2, "b0") }], "b1 2 a1 1"]; M._.w()
```
--------------------------------
### Render Initial HTML Table
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-keyed-selector-preset/__snapshots__/render.md
Displays the initial structure of an HTML table with buttons. This is the starting state before any updates.
```html
```
--------------------------------
### Initial Runtime Setup and Reorder
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/async-reorder-nested-batched-resolve/__snapshots__/writes.debug.html
Sets up the initial runtime configuration and triggers a reorder operation. This is typically the first step in processing a Marko component's render tree.
```javascript
LOADING A1 WALKER_RUNTIME("M")("_"); M._.r = [_ => [2, { "#BranchAccessor": "#text/0", "#PlaceholderContent": _(1, "packages/runtime-tags/src/__tests__/fixtures/async-reorder-nested-batched-resolve/template.marko_4_content" ) }]]; REORDER_RUNTIME(M._); M._.w()
```
--------------------------------
### Runtime Initialization and Scope Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/__snapshots__/writes.debug.html
Initializes the Marko runtime and sets up the scope for rendering. This code is typically part of the Marko runtime's internal workings.
```javascript
WALKER_RUNTIME("M")("s"); M.s.r = [_ => [1, { m5c: "s0-0", "ConditionalRenderer:#text/2": _. _. $compat_renderBody, count: 0 }], "$compat_setScope 1 packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/components/tags-layout.marko_0 1" ]; M.s.w(); $MC = (window.$MC || []).concat({ "w": [ ["s0", 0, {}, { "f": 1 }] ], "t": [ "packages/runtime-tags/src/__tests__/fixtures-interop/interop-nested-attr-tags-class-to-tags/template.marko" ] })
```
--------------------------------
### Update Example - Attribute Change and Insertion
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-tag-single-node-only-child-in-parent/__snapshots__/render.md
Illustrates an update operation in Marko, demonstrating both changing an attribute on an existing element and inserting a new element.
```text
UPDATE: div[data-children] "1" => "2"
INSERT: div > div:nth-of-type(1) + div
```
--------------------------------
### Updated Render Example after Click
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/spread-removed-event-handler/__snapshots__/render.debug.md
Illustrates the HTML structure after a click event has updated the component's state.
```html
1:
```
--------------------------------
### Render Initial HTML with Marko
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-input-intersection/__snapshots__/render.debug.md
Shows how to render basic HTML elements with classes and default text content using Marko.
```html
default
default
```
--------------------------------
### Marko Update Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-tag-with-state/__snapshots__/render.debug.md
Shows the state of the DOM after an update operation in Marko.
```html
0: 1
1: 2
2: 3
0: 1
1: 2
```
--------------------------------
### Initial Button Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/conditional-event-handler/__snapshots__/render.md
Renders the initial state of a button with a click count of 0. This is the starting point for the demonstration.
```html
```
--------------------------------
### CSR Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/placeholder-single/__snapshots__/render-csr.debug.md
Shows a basic client-side render output for a Marko component.
```html
abdeg
```
--------------------------------
### Initialize Toggle Show Runtime
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/writes.debug.html
Initializes the runtime with a toggle show component. This setup is necessary for dynamic visibility toggling.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { show: !0 }], "packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/template.marko_0 1"]; M._.w()
```
--------------------------------
### Marko Runtime Initialization and Rendering
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/__snapshots__/writes.html
Demonstrates the initialization of the Marko runtime and the registration of rendering functions. This snippet is crucial for understanding how Marko processes and renders components.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { Db: _.b, c: "hi" }, { m5c: "_0", m5i: { value: "hi" } }]]; M._.w(); $MC = (window.$MC || []).concat({ "p": "_", "w": [ ["_0", 0, 2, { "f": 1 }] ], "t": ["b"] }); M._.r.push("$C_s 2 a0 1"); M._.w()
```
--------------------------------
### Basic Component Rendering
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/render.debug.md
Demonstrates rendering a simple component with header, main, and footer sections.
```html
Header content
Body content
```
--------------------------------
### Initial Render of Buttons and State
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-dynamic-spread/__snapshots__/render.md
This snippet shows the initial HTML structure with several buttons and a state display. It serves as the starting point for observing changes.
```html
true:0
```
--------------------------------
### Text Manipulation - Remove and Insert Operation
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/placeholders-nested/__snapshots__/render-ssr.debug.md
Example of REMOVE and INSERT operations for text manipulation.
```marko-template
REMOVE: ::text("_B_")
INSERT: ::text@0 + :is(::text("b"), ::text("c"), ::text("d"), ::text("_A_"))
```
--------------------------------
### Marko Runtime Initialization and Return Reference Hoisting
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/hoist-return-ref/__snapshots__/writes.html
Demonstrates the initialization of the Marko runtime with a specific tag ('M') and the subsequent hoisting of a return reference. This snippet illustrates how the runtime prepares for rendering and state management.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { d: _._.c0 }, { c: { y: _(1, "a0") } }], "b0 2"]; M._.w()
```
--------------------------------
### Text Manipulation - Insert Operation
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/placeholders-nested/__snapshots__/render-ssr.debug.md
Example of an INSERT operation for text manipulation within Marko.
```marko-template
INSERT: ::text@4 + ::text("ij")
```
--------------------------------
### Runtime Initialization and Event Handler Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/__snapshots__/writes.debug.html
Initializes the Marko runtime and sets up event handlers for a component. This code configures the component's rendering logic and attaches an event listener for 'click'.
```javascript
0 WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { "ConditionalRenderer:#text/0": _. _[ "packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/components/my-button.marko" ], count: 0, "ClosureScopes:count": new Set([_(3)]) }, { m5c: "_0", m5i: { renderBody: _(1, "packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/template.marko_1_content" ) } }, { m5c: "_0-1", _: _(1) }], "$compat_setScope 3"]; M._.w(); $MC = (window.$MC || []).concat({ "p": "_", "w": [ ["_0", 0, 2, { "e": [ ["click", [ "packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/template.marko_0/onClick", 1 ]]], "f": 1, "r": [ "packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/template.marko_1_content", 1 ] }]] , "t": [ "packages/runtime-tags/src/__tests__/fixtures-interop/interop-event-handler-render-body-tags-to-class/components/my-button.marko" ] }); M._.r.push("$compat_setScope 2 1 1"); M._.w()
```
--------------------------------
### Initialize and Write with Marko Runtime
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/let/__snapshots__/writes.debug.html
This code initializes the Marko runtime with a specific tag ('M') and registers a read/write handler. It's used to set up the runtime environment for testing 'let' statement behavior.
```javascript
0 WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { count: 0 }], "packages/runtime-tags/src/__tests__/fixtures-interop/let/template.marko_0 1"]; M._.w()
```
--------------------------------
### Runtime Initialization and Update Snapshot
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/batched-updates/__snapshots__/writes.debug.html
This snippet shows the initial setup of the Marko runtime for batched updates and the registration of update handlers. It's part of the debugging output for template rendering.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { a: 0, b: 0 }], "packages/runtime-tags/src/__tests__/fixtures/batched-updates/template.marko_0 1"]; M._.w()
```
--------------------------------
### Render Uncontrolled Textarea
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/uncontrolled-textarea-value/__snapshots__/render.debug.md
Renders a basic uncontrolled textarea element. Use this for initial setup.
```html
```
--------------------------------
### Basic HTML Rendering
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/dynamic-tag-spread/__snapshots__/render.debug.md
Demonstrates rendering of basic HTML structures with an ID attribute. This is a fundamental example of how Marko renders static HTML.
```html
hi
```
--------------------------------
### Updated Render Example (1)
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/static-text-followed-by-placeholder/__snapshots__/render.md
Illustrates the HTML structure after an update, showing the count incremented to 1.
```html
= 1
```
--------------------------------
### Marko Runtime Initialization
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-attrs-update/__snapshots__/writes.debug.html
Sets up the Marko runtime with initial data and component registration for the lazy tag fixture.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { value: 0, "#childScope/2": _(2) }], "packages/runtime-tags/src/__tests__/fixtures/lazy-tag-visible-attrs-update/template.marko_0 1"]; M._.w()
```
--------------------------------
### Updated Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/basic-nested-for/__snapshots__/render.debug.md
Displays the HTML structure after a component update, showing added and modified elements.
```html
0.0
0.1
0.2
1.0
1.1
1.2
2.0
2.1
2.2
```
--------------------------------
### Marko Runtime Initialization and Rejection Handling
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/async-reject-then-resolve-before-and-after-isolated-boundaries/__snapshots__/writes.html
Initializes the Marko runtime with a specific configuration and demonstrates a rejection scenario. This is used to set up the testing environment.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [2, { C: "a", E: _(1, "a0") }, { C: "b", E: _(1, "a2") }, { C: "c", E: _(1, "a5") }]]; Rejected B REORDER_RUNTIME(M._); M._.w()
```
--------------------------------
### Marko Runtime Initialization with Returns
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/returns-within-define-tag/__snapshots__/writes.html
This snippet illustrates the Marko runtime's initialization process, specifically how it handles return values from define tags. It shows the structure of the runtime data and the expected output.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { b: 3, f: 5, i: 0, j: _(2, "a0"), k: 0, l: _(4, "a2"), a: _(2), e: _(4) }, { T: _(1, "a5"), c: _(1, "a1"), d: 1 }, 1, { T: _(1, "a7"), c: _(1, "a3"), d: 2 }], "a8 1 a9 1"]; M._.w()
```
--------------------------------
### First Update and Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/basic-member-expression-computed/__snapshots__/render.md
Shows how to trigger an update, likely via a button click, and the resulting HTML structure after the update.
```js
container.querySelector("button").click();
```
```html
b
c
```
--------------------------------
### Initialize and Configure Runtime Placeholders
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/placeholders-nested/__snapshots__/writes.html
Sets up the runtime with placeholder definitions and reorders them for processing. This is typically used for initializing rendering logic.
```javascript
a_B_h bd_A_ eg WALKER_RUNTIME("M")("_"); M._.r = [_ => [2, { C: "a", Q: _(1, "a2") }, { C: "b", Q: _(2, "a0") }]]; REORDER_RUNTIME(M._);
```
--------------------------------
### Initial Rendered HTML
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/bound-attr-repeated-let/__snapshots__/render.debug.md
Shows the initial HTML structure rendered by a Marko component, including a button and multiple input elements with a 'start' value.
```html
```
--------------------------------
### Initial Component Structure and Mount/Destroy Logs
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/cleanup-n-child-if-deep/__snapshots__/render.debug.md
This HTML defines the initial structure of buttons and a pre tag to log component lifecycle events. Observe the mount and destroy logs to understand component lifecycles.
```html
```
--------------------------------
### Runtime Initialization and Writes
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/interop-self-interactive-tags-to-class/__snapshots__/writes.html
Initializes the Marko runtime with specific configurations and performs write operations. This code is typically part of the Marko runtime setup.
```javascript
0 WALKER_RUNTIME("M")("_"); M._.r = [_ => [2, { m5c: "_0", m5i: {} }]]; M._.w(); $MC = (window.$MC || []).concat({ "p": "_", "w": [ ["_0", 0, 2, { "f": 1 }] ], "t": ["b"] }); M._.r.push("$C_s 2"); M._.w()
```
--------------------------------
### Adding Update to Runtime
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/await-update-after-resume/__snapshots__/writes.html
Appends a new update operation to the runtime's queue after initial setup.
```javascript
M._.r.push(_ => [4, { c: 0 }]); M._.j.b = _ => { _.push("a0 4 a1 4") }; M._.w()
```
--------------------------------
### Initialize Runtime and Initial Write
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/async-reorder-nested-batched-resolve/__snapshots__/writes.html
Initializes the runtime with a specific configuration and performs the first write operation. This sets up the initial state for subsequent operations.
```javascript
LOADING A1 WALKER_RUNTIME("M")("_"); M._.r = [_ => [2, { C: "a", Q: _(1, "a6") }]]; REORDER_RUNTIME(M._); M._.w()
```
--------------------------------
### Basic HTML Rendering in Marko
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic-tag-parent/__snapshots__/render.md
Demonstrates rendering standard HTML elements like header, main, and footer with attributes within a Marko component.
```html
Header content
Body content
```
--------------------------------
### Change Log Example 3
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/render.md
A log entry indicating the change in the button's text from '3' to '4'.
```text
UPDATE: button::text "3" => "4"
```
--------------------------------
### Updated Render Example 3
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/render.md
HTML structure after the third update, showing the button text changed to '4'.
```html
```
--------------------------------
### Initial Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/bound-attr-missing-handler/__snapshots__/render.debug.md
Shows the initial HTML structure before any updates.
```html
```
--------------------------------
### Updated Render Example 2
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/render.md
HTML structure after the second update, showing the button text changed to '3'.
```html
```
--------------------------------
### Updated Render Example 1
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/tag-var-with-serialize-reason/__snapshots__/render.md
HTML structure after the first update, showing the button text changed to '2'.
```html
```
--------------------------------
### Marko Runtime Initialization and State Update
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/__snapshots__/writes.debug.html
This snippet shows the initial setup of the Marko runtime and how it registers an asynchronous operation. It's used to observe the runtime's state before and during asynchronous rendering.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { showAsync: !0 }]] Got: ASYNCtoggle M._.r.push( "packages/runtime-tags/src/__tests__/fixtures/await-pending-interrupt-sync/template.marko_0 1" ); M._.w()
```
--------------------------------
### Initial Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/inert-if-closure-update-active/__snapshots__/render.md
Renders the initial HTML content, displaying '0' and a button.
```html
0
```
--------------------------------
### Marko Runtime Initialization and Data Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-item-member-intersection/__snapshots__/writes.html
Initializes the Marko runtime and sets up a data structure for testing. This code is typically used in test environments to prepare data for rendering.
```javascript
rev walker_RUNTIME("M")("_"); M._.r = [_ => [1, { c: [{ a: 1, b: 2 }, { a: 3, b: 4 }] }], "a0 1"]; M._.w()
```
--------------------------------
### Text Manipulation - Remove and Insert Operation (Complex)
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/placeholders-nested/__snapshots__/render-ssr.debug.md
Example of REMOVE and INSERT operations with multiple text segments.
```marko-template
REMOVE: ::text("_A_")
INSERT: ::text@3 + :is(::text("e"), ::text("f"), ::text("g"))
```
--------------------------------
### Initial Render with SVG, Math, and Empty Tags
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/svg-math-empty/__snapshots__/render.debug.md
This snippet shows the initial HTML structure rendered by Marko, including a button, an SVG element, and a Math element. This is the starting point before any updates.
```html
```
--------------------------------
### CSR Update Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/if-member-expression-intersection/__snapshots__/render-csr.debug.md
Illustrates the client-side rendering update for a Marko component, showing changes to existing elements.
```html
cM_0
cM_1
```
--------------------------------
### Runtime Initialization and Data Setup
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-by-nested-branch-divergence/__snapshots__/writes.html
Initializes the Marko runtime with a specific tag name and sets up the data structure for a loop operation. This data includes properties that will be used for conditional rendering within the loop.
```javascript
rot WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { d: { id: 3, on: !0 }, e: { id: 1, on: !0 }, f: { id: 2, on: !1 } }, { e: 1, M: 1 }, 1, { Da: 1, e: 2, M: 2 }, 1, { e: 3, M: 3 }], "a0 1"]; M._.w()
```
--------------------------------
### Initial Component Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/basic-toggle-show/__snapshots__/render.md
Renders a simple component with a heading and a button.
```html
Hello!
```
--------------------------------
### Updated Render Example
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/bound-attr-pattern-existing-change/__snapshots__/render.md
Displays the HTML structure after a state update has been applied, showing the changed button text.
```html
A
B
```
--------------------------------
### Initial Render of Button
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/text-content-counter/__snapshots__/render.md
Renders a button element with an initial text content of '0'. This is the starting state of the UI.
```html
```
--------------------------------
### Runtime State Initialization and Write
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/try-effects-catch-state/__snapshots__/writes.html
Initializes the runtime with a specific state configuration and performs a write operation. This sets up the initial state for subsequent operations.
```javascript
inc -- WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { c: 0, Bc: new Set([_(2)]) }, { _: _(1), C: "b", E: _(1, "a0") }], "a2 2 a3 2"]; M._.w()
```
--------------------------------
### Marko Runtime Initialization and Rendering
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/__snapshots__/writes.debug.html
This snippet shows the initialization of the Marko runtime and the registration of rendering functions. It's used to set up the rendering process for components and manage their states.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { "ConditionalRenderer:#text/1": _._[ "packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/components/class-display.marko" ], msg: "hi" }, { m5c: "_0", m5i: { value: "hi" } }]]; M._.w(); $MC = (window.$MC || []).concat({ "p": "_", "w": [ ["_0", 0, 2, { "f": 1 }] ], "t": [ "packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/components/class-display.marko" ] }); M._.r.push( "$compat_setScope 2 packages/runtime-tags/src/__tests__/fixtures-interop/interop-rerender-inert-class/template.marko_0 1" ); M._.w()
```
--------------------------------
### Initial Marko Component Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-destructure/__snapshots__/render.debug.md
Renders the initial HTML structure for a Marko component. This is the starting point before any updates.
```html
Marko: HTML Reimagined
```
--------------------------------
### Initial Render of Buttons and Log Div
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/native-event-handler-lazy-read-param/__snapshots__/render.debug.md
This HTML snippet shows the initial state of the UI, including two buttons and an empty log div. It sets up the elements that will be interacted with.
```html
```
--------------------------------
### Render Initial HTML
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/native-tag-spread-attr-tag/__snapshots__/render.md
Renders a section with a button and a footer. This is the initial state before any updates.
```html
```
--------------------------------
### Render Initial HTML in Marko
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/destructure-input-with-assignment/__snapshots__/render.debug.md
Shows how to render initial HTML content within a Marko component. This is the basic structure for displaying static content.
```html
1
```
--------------------------------
### Initial CSR Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/await-closure-in-order/__snapshots__/render-csr.debug.md
Initial HTML structure rendered on the client. This serves as the starting point for subsequent updates.
```html
1
```
--------------------------------
### Render Initial Card with Styles
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/style-tag-dynamic-selectors/__snapshots__/render-csr.debug.md
Initial rendering of a card component with static class names. This sets up the base structure for styling.
```html
Card
```
--------------------------------
### Render Initial Table Structure
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/for-selector-by-member/__snapshots__/render.md
Renders a basic HTML table with three rows, each containing a button with the class 'select'. This serves as the initial state for demonstrating updates.
```html
```
--------------------------------
### Simulating User Interaction and Update
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/custom-tag-var-intersection/__snapshots__/render.md
This demonstrates how to simulate a user click to trigger a component update and shows the resulting HTML.
```javascript
container.querySelector("button.inc").click();
```
```html
Marko 2
```
--------------------------------
### Initial Render
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/interop-events-tags-to-class/__snapshots__/render.md
Renders a button and a div with initial text content.
```html
0
```
--------------------------------
### Finalizing Runtime State
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/__snapshots__/writes.debug.html
Completes the runtime setup by pushing final render instructions for both 'grand-child.marko' and 'child.marko' components.
```javascript
M._.b[ "ready:packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/grand-child.marko" ].push( "packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/grand-child.marko_0 4" ); M._.b[ "ready:packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/child.marko" ].push( "packages/runtime-tags/src/__tests__/fixtures/lazy-tag-nested-async/child.marko_0 2" ); M._.w()
```
--------------------------------
### WALKER_RUNTIME Initialization
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/counter-intersection/__snapshots__/writes.debug.html
Initializes WALKER_RUNTIME with specific configurations for testing. This setup is used for debugging and snapshotting runtime behavior.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { a: 0, b: 0 }], "packages/runtime-tags/src/__tests__/fixtures/counter-intersection/template.marko_0 1"]; M._.w()
```
--------------------------------
### WALKER_RUNTIME Initialization
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/basic-counter-multiplier/__snapshots__/writes.html
Initializes the WALKER_RUNTIME with specific data for a counter multiplier. This setup is used for testing write operations.
```javascript
WALKER_RUNTIME("M")("\_"); M._.r = [_, { e: 0, f: 1 }, "a0 1"]; M._.w()
```
--------------------------------
### Marko Runtime Initialization and Definition
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/__snapshots__/writes.debug.html
This snippet shows the initialization of the Marko runtime and the definition of a component or tag. It includes the runtime setup and the definition of the component's rendering logic, which involves a closure and element referencing.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = [_ => [2, { input_message: "hello", _: _(1) }], "packages/runtime-tags/src/__tests__/fixtures/known-define-tag-empty-section-fn-closure-element-reference/template.marko_1_input_message 2"]; M._.w()
```
--------------------------------
### Initialize WALKER Runtime
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/at-tags-dynamic/__snapshots__/writes.html
Initializes the walker runtime with specific configurations. This is typically part of the Marko runtime setup.
```javascript
WALKER_RUNTIME("M")("_"); M._.r = ["b0 3 5 7 b1 11 13 b2 9 b1 17 19 b2 15 b1 23 b2 21"]; M._.w()
```
--------------------------------
### Render Dynamic Attributes SSR
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures/update-dynamic-attrs/__snapshots__/render-ssr.debug.md
Shows how dynamic attributes are rendered on the server. This example renders static attributes that are then updated.
```html
```
--------------------------------
### Marko Runtime Initialization and Write
Source: https://github.com/marko-js/marko/blob/main/packages/runtime-tags/src/__tests__/fixtures-interop/interop-basic-tags-to-class/__snapshots__/writes.html
Initializes the Marko runtime with a component definition and performs an initial write operation. This sets up the component's initial state and registers it with the runtime.
```javascript
00 WALKER_RUNTIME("M")("_"); M._.r = [_ => [1, { Dc: _.b, d: 0 }, { m5c: "_0", m5i: { count: 0 } }]]; M._.w(); $MC = (window.$MC || []).concat({ "p": "_", "w": [ ["_0", 0, 2, { "f": 1 }] ], "t": ["b"] }); M._.r.push("$C_s 2 a0 1"); M._.w()
```