1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-12-23 05:37:23 +00:00

Choose template engine from active theme.

This commit is contained in:
devlinjd 2015-12-17 11:04:29 -05:00
parent 36f8010ebc
commit fc9cbab974

View File

@ -142,8 +142,7 @@ Definition of the TemplateGenerator class.
*/
single: function( json, jst, format, cssInfo, opts, theme ) {
this.opts.freezeBreaks && ( jst = freeze(jst) );
var eng = require( '../eng/' + ((opts.themeObj && opts.themeObj.engine) ||
opts.engine) + '-generator' );
var eng = require( '../eng/' + theme.engine + '-generator' );
var result = eng( json, jst, format, cssInfo, opts, theme );
this.opts.freezeBreaks && ( result = unfreeze(result) );
return result;