1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-08-14 20:41:01 +01:00

Numerous fixes.

This commit is contained in:
hacksalot
2016-02-13 16:08:45 -05:00
parent 3f8e795c61
commit ca92d41d9e
25 changed files with 6446 additions and 42 deletions

View File

@@ -31,7 +31,8 @@ module.exports = class HtmlPdfCLIGenerator extends TemplateGenerator
###* Generate the binary PDF. ###
onBeforeSave: ( info ) ->
return info.mk if info.ext != 'html'
#console.dir _.omit( info, 'mk' ), depth: null, colors: true
return info.mk if info.ext != 'html' and info.ext != 'pdf'
safe_eng = info.opts.pdf || 'wkhtmltopdf'
safe_eng = 'phantomjs' if safe_eng == 'phantom'
if _.has engines, safe_eng