#[template]Expand description
Mark a struct as a template and provide the name of the template file it uses.
ยงExample
use crml::{template, Template}; // import template macro *and* Template trait
#[template("mycrmlfile")]
struct MyStruct {
a: i32
}
fn main() {
// the Template trait provides .render()
println!("rendered: {}", MyStruct { a: 1 }.render());
}