1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// /// this takes patterns <template> [<http_status>]
// /// and makes a tide result with a HTML mime type
// macro_rules! tide_result_html {
//     ($template:tt) => {
//         tide_result_html!($template, 200, (mime::HTML))
//     };
//     ($template:tt, $status:tt) => {
//         tide_result_html!($template, $status, (mime::HTML))
//     };
//     ($template:tt, $status:tt, $mimetype:tt) => {
//         Response::builder($status)
//             .body($template.render().unwrap())
//             .content_type($mimetype)
//             .build()
//     };
// }