summaryrefslogtreecommitdiff
path: root/src/templates/mod.rs
blob: 99e3bf3f66276b00a2902545a11917c2c6417ed0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use handlebars::Handlebars;

lazy_static! {
    pub static ref REGISTRY: Handlebars<'static> = {
        let mut handlebars = Handlebars::new();
        handlebars
            .register_template_string("index", include_str!("index.hbs"))
            .unwrap();
        handlebars
            .register_template_string("login", include_str!("login.hbs"))
            .unwrap();
        handlebars
            .register_template_string("base", include_str!("base.hbs"))
            .unwrap();
        handlebars
    };
}

pub static FAVICON: &str = include_str!("favicon.svg");