summaryrefslogblamecommitdiffstats
path: root/src/actix_ructe.rs
blob: e6ba0db93126cfd48f72a7e45d415ad3c167eeb8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                    
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)
    }};
}