|
use sailfish::RenderOnce;
|
|
use sailfish_macros::RenderOnce;
|
|
|
|
#[derive(RenderOnce)]
|
|
#[template(path = "foo.stpl", escape = 1)]
|
|
struct InvalidOptionValue {
|
|
name: String,
|
|
}
|
|
|
|
fn main() {
|
|
println!(
|
|
"{}",
|
|
InvalidOptionValue {
|
|
name: "Hanako".to_owned()
|
|
}
|
|
.render_once()
|
|
.unwrap()
|
|
);
|
|
}
|