summaryrefslogtreecommitdiff
path: root/src/templates/mod.rs
blob: e0e194ac276cfd580320c76a73b99bdf5e1377fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
use handlebars::Handlebars;

pub fn init() -> Handlebars<'static> {
    let mut handlebars = Handlebars::new();
    handlebars
        .register_template_string("index", include_str!("index.hbs"))
        .unwrap();
    handlebars
        .register_template_string("base", include_str!("base.hbs"))
        .unwrap();
    handlebars
}