macro_rules! tera_context {
{
$( $k:ident $( : $v:expr )? ),* $(,)?
} => { ... };
{
@ $context:ident $k:ident
} => { ... };
{
@ $context:ident $k:ident $v:expr
} => { ... };
}Expand description
Reimplementation, roughly, of rocket_dyn_templates::context!
let _: tera::Context = tera_context! {
NAME: VALUE,
NAME_SAME_AS_VALUE,
};