sailfish/integration-tests/tests/fails/invalid_option_value.rs

13 lines
284 B
Rust
Raw Normal View History

2020-06-07 08:38:49 -04:00
use sailfish::TemplateOnce;
use sailfish_macros::TemplateOnce;
#[derive(TemplateOnce)]
#[template(path = "foo.stpl", escape=1)]
struct InvalidOptionValue {
name: String
}
fn main() {
println!("{}", InvalidOptionValue { name: "Hanako".to_owned() }.render_once().unwrap());
}