macro_rules! text { ( $($arg: tt)* ) => { ... }; }
Expand description
creates a text node using a formatter
§Examples
use sauron::*;
let number = 42;
let title:Node<()> = h1(vec![], vec![text!("This is the content number: {}", number)]);
assert_eq!(node!{<h1>"This is the content number: 42"</h1>}, title);