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:
parent
36f8010ebc
commit
fc9cbab974
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user