Skip to content

Commit ab91cfb

Browse files
committed
handlebars: Adjust to register_templates_directory() API changes
1 parent 1e9ffa5 commit ab91cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl<'a> Generator<'a> {
5454
) -> eyre::Result<Self> {
5555
let mut handlebars = Handlebars::new();
5656
handlebars.set_strict_mode(true);
57-
handlebars.register_templates_directory(".hbs", "templates")?;
57+
handlebars.register_templates_directory("templates", Default::default())?;
5858
handlebars.register_helper("month_name", Box::new(hb_month_name_helper));
5959

6060
Ok(Generator {

0 commit comments

Comments
 (0)