@@ -71,21 +71,12 @@ module.exports = function (comments, options, callback) {
71
71
}
72
72
}
73
73
} ;
74
+
75
+ sharedImports . imports . renderSectionList = _ . template ( fs . readFileSync ( path . join ( __dirname , 'section_list._' ) , 'utf8' ) , sharedImports ) ;
76
+ sharedImports . imports . renderSection = _ . template ( fs . readFileSync ( path . join ( __dirname , 'section._' ) , 'utf8' ) , sharedImports ) ;
77
+ sharedImports . imports . renderNote = _ . template ( fs . readFileSync ( path . join ( __dirname , 'note._' ) , 'utf8' ) , sharedImports ) ;
74
78
75
- var pageTemplate = _ . template (
76
- fs . readFileSync ( path . join ( __dirname , 'index._' ) , 'utf8' ) , {
77
- imports : _ . assign ( { } , sharedImports . imports , {
78
- renderSection : _ . template (
79
- fs . readFileSync ( path . join ( __dirname , 'section._' ) , 'utf8' ) ,
80
- sharedImports ) ,
81
- renderNote : _ . template (
82
- fs . readFileSync ( path . join ( __dirname , 'note._' ) , 'utf8' ) ,
83
- sharedImports ) ,
84
- renderSectionList : _ . template (
85
- fs . readFileSync ( path . join ( __dirname , 'section_list._' ) , 'utf8' ) ,
86
- sharedImports )
87
- } )
88
- } ) ;
79
+ var pageTemplate = _ . template ( fs . readFileSync ( path . join ( __dirname , 'index._' ) , 'utf8' ) , sharedImports ) ;
89
80
90
81
// push assets into the pipeline as well.
91
82
vfs . src ( [ __dirname + '/assets/**' ] , { base : __dirname } )
0 commit comments