runique 1.1.25

A Django-inspired web framework for Rust with ORM, templates, and comprehensive security middleware
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[macro_export]
macro_rules! tpl {
    ($name:literal, $path:literal) => {
        ($name, include_str!(concat!("../../../templates/", $path)))
    };
}

#[macro_export]
macro_rules! tpls {
    ( $( ($name:literal, $path:literal) ),* $(,)? ) => {
        &[
            $(
                $crate::tpl!($name, $path),
            )*
        ] as &[(&str, &str)]
    };
}