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

13 lines
258 B
Rust
Raw Normal View History

use sailfish::TemplateOnce;
use sailfish_macros::TemplateOnce;
#[derive(TemplateOnce)]
#[template(path = "not_exist.stpl")]
struct NotExistTemplate {
var: usize
}
fn main() {
println!("{}", NotExistTemplate { var: 1996 }.render_once().unwrap());
}