drteeth 0.2.1

Low-complexity web technology user interface library for desktop apps
Documentation
//! Normal behavior in Sailfish is to look for templates in the
//! *templates* directory under the project root, but we've got a
//! sailfish.toml file in the project root that directs it to look in
//! *examples/todolist/templates* instead.

use sailfish::TemplateOnce;

#[derive(TemplateOnce)]
#[template(path = "layout.html.st")]
pub struct Layout<'state> {
    pub items: super::ItemMap<'state>,
}

#[derive(TemplateOnce)]
#[template(path = "items.html.st")]
pub struct Items<'state> {
    pub items: super::ItemMap<'state>,
}

#[derive(TemplateOnce)]
#[template(path = "item.html.st")]
pub struct Item<'state> {
    pub id: &'state ulid::Ulid,
    pub item: &'state super::Item,
}

#[derive(TemplateOnce)]
#[template(path = "newform.html.st")]
pub struct NewForm {}