macro_rules! render { ($template:path) => {{ let mut buf = Vec::new(); $template(&mut buf).map(|()| buf) }}; ($template:path, $($arg:expr),* $(,)*) => {{ let mut buf = Vec::new(); $template(&mut buf, $($arg),*).map(|()| buf) }}; }