Skip to content

Commit

Permalink
Move templates to src
Browse files Browse the repository at this point in the history
  • Loading branch information
valff committed Sep 3, 2019
1 parent 5071df4 commit ef66d23
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/templates.rs → src/templates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ impl Registry {
let mut handlebars = Handlebars::new();
macro_rules! template {
($path:expr) => {
handlebars
.register_template_string($path, include_str!(concat!("../templates/", $path)))
handlebars.register_template_string($path, include_str!(concat!($path, ".hbs")))
};
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ef66d23

Please sign in to comment.