mirror of
				https://github.com/JuanCanham/HackMyResume.git
				synced 2025-10-30 20:57:26 +00: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:
		| @@ -61,8 +61,7 @@ Definition of the HandlebarsGenerator class. | |||||||
|  |  | ||||||
|  |  | ||||||
|   function registerPartials(format, theme) { |   function registerPartials(format, theme) { | ||||||
|     if( format !== 'html' && format != 'doc' ) |     if( format === 'html' || format === 'doc' ) { | ||||||
|       return; |  | ||||||
|  |  | ||||||
|       // Locate the global partials folder |       // Locate the global partials folder | ||||||
|       var partialsFolder = PATH.join( |       var partialsFolder = PATH.join( | ||||||
| @@ -86,6 +85,8 @@ Definition of the HandlebarsGenerator class. | |||||||
|         theme.partialsInitialized = true; |         theme.partialsInitialized = true; | ||||||
|       }); |       }); | ||||||
|  |  | ||||||
|  |     } | ||||||
|  |  | ||||||
|     // Register theme-specific partials |     // Register theme-specific partials | ||||||
|     _.each( theme.partials, function( el ) { |     _.each( theme.partials, function( el ) { | ||||||
|       var tplData = FS.readFileSync( el.path, 'utf8' ); |       var tplData = FS.readFileSync( el.path, 'utf8' ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user