mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 08:20:11 +00:00
Kludge theme loading issue for FCVD.
Resolve in v0.11.0.
This commit is contained in:
parent
3805a36271
commit
00e6407347
@ -10,8 +10,8 @@ Underscore template generate for FluentCV.
|
|||||||
module.exports = function( json, jst, format, cssInfo, opts ) {
|
module.exports = function( json, jst, format, cssInfo, opts ) {
|
||||||
|
|
||||||
// Tweak underscore's default template delimeters
|
// Tweak underscore's default template delimeters
|
||||||
var delims = opts.themeObj.delimeters || opts.template;
|
var delims = (opts.themeObj && opts.themeObj.delimeters) || opts.template;
|
||||||
if( opts.themeObj.delimeters ) {
|
if( opts.themeObj && opts.themeObj.delimeters ) {
|
||||||
delims = _.mapObject( delims, function(val,key) {
|
delims = _.mapObject( delims, function(val,key) {
|
||||||
return new RegExp( val, "ig");
|
return new RegExp( val, "ig");
|
||||||
});
|
});
|
||||||
|
@ -121,7 +121,8 @@ Template-based resume generator base for FluentCV.
|
|||||||
Object.keys( curFmt.symLinks ).forEach( function(loc) {
|
Object.keys( curFmt.symLinks ).forEach( function(loc) {
|
||||||
var absLoc = PATH.join(outFolder, loc);
|
var absLoc = PATH.join(outFolder, loc);
|
||||||
var absTarg = PATH.join(PATH.dirname(absLoc), curFmt.symLinks[loc]);
|
var absTarg = PATH.join(PATH.dirname(absLoc), curFmt.symLinks[loc]);
|
||||||
var type = PATH.parse( absLoc ).ext ? 'file' : 'junction'; // 'file', 'dir', or 'junction' (Windows only)
|
// 'file', 'dir', or 'junction' (Windows only)
|
||||||
|
var type = PATH.parse( absLoc ).ext ? 'file' : 'junction';
|
||||||
FS.symlinkSync( absTarg, absLoc, type);
|
FS.symlinkSync( absTarg, absLoc, type);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -140,7 +141,8 @@ Template-based resume generator base for FluentCV.
|
|||||||
*/
|
*/
|
||||||
single: function( json, jst, format, cssInfo, opts ) {
|
single: function( json, jst, format, cssInfo, opts ) {
|
||||||
this.opts.freezeBreaks && ( jst = freeze(jst) );
|
this.opts.freezeBreaks && ( jst = freeze(jst) );
|
||||||
var eng = require( '../eng/' + opts.themeObj.engine + '-generator' );
|
var eng = require( '../eng/' + ((opts.themeObj && opts.themeObj.engine) ||
|
||||||
|
opts.engine) + '-generator' );
|
||||||
var result = eng( json, jst, format, cssInfo, opts );
|
var result = eng( json, jst, format, cssInfo, opts );
|
||||||
this.opts.freezeBreaks && ( result = unfreeze(result) );
|
this.opts.freezeBreaks && ( result = unfreeze(result) );
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user