refactor(v0): render todos with hemplate

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
This commit is contained in:
slhx agent
2026-05-25 21:42:08 +02:00
parent 3b61451858
commit c655d877ca
4 changed files with 70 additions and 17 deletions
@@ -0,0 +1,6 @@
<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>