Files
hemx/examples/v0/templates/partials/todo_items.heml
T
slhx agent c655d877ca 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
2026-05-25 21:42:08 +02:00

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>