c655d877ca
Move the v0 todo-list payload from Rust raw HTML formatting into a hemplate partial/view and cover both populated and empty rendered structure with scraper. req: html_safety/002 req: view/001 req: test/005
7 lines
182 B
Plaintext
7 lines
182 B
Plaintext
<template h-if="self.items.is_empty()">
|
|
<li>No todos yet</li>
|
|
</template>
|
|
<template h-else>
|
|
<li h-for="todo in &self.items" +data-key="todo.id">{+ todo.title +}</li>
|
|
</template>
|