1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-04 05:17:08 +01:00
This commit is contained in:
devlinjd
2015-12-07 21:24:14 -05:00
parent 5a716dff16
commit fcaeb381fe
5 changed files with 438 additions and 318 deletions

View File

@ -23,10 +23,10 @@ Underscore template generate for FluentCV.
jst = jst.replace( delims.interpolate, function replace(m, p1) {
if( p1.indexOf('|') > -1 ) {
var terms = p1.split('|');
return '[~ print( filt.' + terms[1] + '( ' + terms[0] + ' )) ]]';
return '[~ print( filt.' + terms[1] + '( ' + terms[0] + ' )) ~]';
}
else {
return '[~ print( filt.out(' + p1 + ') ) ]]';
return '[~ print( filt.out(' + p1 + ') ) ~]';
}
});
@ -34,6 +34,7 @@ Underscore template generate for FluentCV.
jst = jst.replace( delims.comment, '');
// Compile and run the template. TODO: avoid unnecessary recompiles.
var compiled = _.template(jst);
var ret = compiled({
r: json,
filt: opts.filters,