yarte_format 0.10.1

Proc-macro, compiled Handlebars
Documentation

Only run in nightly

Our book

Example

#![feature(proc_macro_hygiene)]
use yarte_format::{yformat, yformat_html};

let foo = "World";
assert_eq!("Hello, World!", yformat!("Hello, {{ foo }}!"));

let foo = "&";
assert_eq!("Hello, &!", yformat_html!("Hello, {{ foo }}!"));