File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ page correspondante.
47
47
> ** NOTE:** _ Tous les layouts doivent être placés dans le dossier
48
48
` src/html/layout ` _
49
49
50
+ > ** NOTE:** _ Dans le layout, le contenu de la page est inclus via le partial
51
+ `{{> body}}`_
52
+
50
53
Helpers
51
54
-------------------------------------------------------------------------------
52
55
Handlebars peut être etendu par l'usage de helpers.
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ function processData(file) {
53
53
54
54
var data = _ . extend ( { } , gData , sData ) ;
55
55
data . url = file . path . replace ( ENV . html [ 'src-dir' ] , DEST_URL ) . replace ( '.hbs' , '.html' ) ;
56
- data . main = hbs . handlebars . compile ( file . contents . toString ( ) ) ( data ) ;
56
+
57
+ hbs . registerPartial ( 'body' , file . contents . toString ( ) ) ;
57
58
58
59
return data ;
59
60
}
You can’t perform that action at this time.
0 commit comments