summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-04-28 19:58:27 -0400
committerAdam T. Carpenter <atc@53hor.net>2021-04-28 19:58:27 -0400
commitf206de5d49eda1900552a4b19f01c8c6985b7903 (patch)
tree86f0b681e01eeda4a8d5f03a85c988866538b981 /src/templates
parentd83fe68ed51016bbb87d83aa512ef8b9d3f0780e (diff)
downloadtwinh-enhancement/2.tar.xz
twinh-enhancement/2.zip
finally committed to structopt arg parsingenhancement/2
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/mod.rs29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/templates/mod.rs b/src/templates/mod.rs
index 534ada0..8b8f156 100644
--- a/src/templates/mod.rs
+++ b/src/templates/mod.rs
@@ -1,16 +1,17 @@
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
-});
+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
+ };
+}