13 lines
258 B
Rust
13 lines
258 B
Rust
|
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());
|
||
|
}
|