File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use self::blogs::Blog;
55use self :: posts:: Post ;
66use chrono:: Timelike ;
77use eyre:: { eyre, WrapErr } ;
8- use handlebars:: { handlebars_helper, Handlebars } ;
8+ use handlebars:: { handlebars_helper, DirectorySourceOptions , Handlebars } ;
99use rayon:: prelude:: * ;
1010use sass_rs:: { compile_file, Options } ;
1111use serde_derive:: Serialize ;
@@ -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 ( "templates" , Default :: default ( ) ) ?;
57+ handlebars. register_templates_directory ( "templates" , DirectorySourceOptions :: default ( ) ) ?;
5858 handlebars. register_helper ( "month_name" , Box :: new ( hb_month_name_helper) ) ;
5959
6060 Ok ( Generator {
You can’t perform that action at this time.
0 commit comments