summaryrefslogblamecommitdiff
path: root/src/templates/mod.rs
blob: 534ada0f25862c554122c984fdd552ce34fcb2b0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                     
use handlebars::Handlebars;
use once_cell::sync::Lazy;

pub static REGISTRY: Lazy<Handlebars> = Lazy::new(|| {
    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
});