1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-10 15:57:07 +01:00

Class-ify Underscore/Handlebars engine.

This commit is contained in:
hacksalot
2015-12-18 13:17:07 -05:00
parent b0bc71cd66
commit 1441fe3ae5
3 changed files with 60 additions and 42 deletions

View File

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