zino_http/view/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! Building HTML views using templates.
//!
//! # Supported template engines
//!
//! The following optional features are available:
//!
//! | Feature flag     | Description                                          | Default? |
//! |------------------|------------------------------------------------------|----------|
//! | `view-minijinja` | Enables the `minijinja` template engine.             | No       |
//! | `view-tera`      | Enables the `tera` template engine.                  | No       |

cfg_if::cfg_if! {
    if #[cfg(feature = "view-tera")] {
        mod tera;

        pub use self::tera::render;
    } else {
        mod minijinja;

        pub use self::minijinja::render;
    }
}