1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-22 16:30:11 +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 ) { single: function( json, jst, format, cssInfo, opts, theme ) {
this.opts.freezeBreaks && ( jst = freeze(jst) ); this.opts.freezeBreaks && ( jst = freeze(jst) );
var eng = require( '../eng/' + ((opts.themeObj && opts.themeObj.engine) || var eng = require( '../eng/' + theme.engine + '-generator' );
opts.engine) + '-generator' );
var result = eng( json, jst, format, cssInfo, opts, theme ); var result = eng( json, jst, format, cssInfo, opts, theme );
this.opts.freezeBreaks && ( result = unfreeze(result) ); this.opts.freezeBreaks && ( result = unfreeze(result) );
return result; return result;