cac23578e2
Add a generated todo notice slot to the v0 normal path so initial render, append, replace, remove, and dynamic Vec<IntoEffect> refreshes visibly compose one reusable TodoRow partial with adjacent generated UI feedback. req: canonical_authoring/003
14 lines
434 B
Plaintext
14 lines
434 B
Plaintext
<section data-hemx-root="todos">
|
|
<form data-hemx-handle="add_todo" data-hemx-form="new_todo">
|
|
<input name="title" required="required">
|
|
<button type="submit">Add</button>
|
|
</form>
|
|
<p data-hemx-slot="summary">{+ self.summary +}</p>
|
|
<p data-hemx-slot="notice">{+ self.notice +}</p>
|
|
<ul data-hemx-slot="todo_row">
|
|
<template h-for="row in &self.rows" h-key="row.id">
|
|
{+ row +}
|
|
</template>
|
|
</ul>
|
|
</section>
|