macro_rules! template {
($template:literal) => { ... };
}Expand description
Create a template from a string literal at compile time.
This macro creates a TronTemplate from a string literal, with compile-time
syntax validation. It’s useful for small templates that don’t warrant
separate files.
§Examples
use tron::template;
let template = template!("fn @[name]@() { @[body]@ }");