1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-07-05 09:30:04 +01:00

load theme partials for non html and doc

load global partials for html and doc only but load theme partials for
all outputs
This commit is contained in:
Antonio Ruberto 2016-01-07 16:39:46 -05:00
parent af896c85ea
commit c147403b1c

View File

@ -61,8 +61,7 @@ Definition of the HandlebarsGenerator class.
function registerPartials(format, theme) {
if( format !== 'html' && format != 'doc' )
return;
if( format === 'html' || format === 'doc' ) {
// Locate the global partials folder
var partialsFolder = PATH.join(
@ -86,6 +85,8 @@ Definition of the HandlebarsGenerator class.
theme.partialsInitialized = true;
});
}
// Register theme-specific partials
_.each( theme.partials, function( el ) {
var tplData = FS.readFileSync( el.path, 'utf8' );