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;
5
5
use self :: posts:: Post ;
6
6
use chrono:: Timelike ;
7
7
use eyre:: { eyre, WrapErr } ;
8
- use handlebars:: { handlebars_helper, Handlebars } ;
8
+ use handlebars:: { handlebars_helper, DirectorySourceOptions , Handlebars } ;
9
9
use rayon:: prelude:: * ;
10
10
use sass_rs:: { compile_file, Options } ;
11
11
use serde_derive:: Serialize ;
@@ -54,7 +54,7 @@ impl<'a> Generator<'a> {
54
54
) -> eyre:: Result < Self > {
55
55
let mut handlebars = Handlebars :: new ( ) ;
56
56
handlebars. set_strict_mode ( true ) ;
57
- handlebars. register_templates_directory ( "templates" , Default :: default ( ) ) ?;
57
+ handlebars. register_templates_directory ( "templates" , DirectorySourceOptions :: default ( ) ) ?;
58
58
handlebars. register_helper ( "month_name" , Box :: new ( hb_month_name_helper) ) ;
59
59
60
60
Ok ( Generator {
You can’t perform that action at this time.
0 commit comments