2015-10-26 16:30:00 +00:00
|
|
|
/**
|
2015-12-17 15:15:59 +00:00
|
|
|
Definition of the HTMLGenerator class.
|
|
|
|
@license MIT. Copyright (c) 2015 James Devlin / FluentDesk.
|
|
|
|
@module html-generator.js
|
2015-10-26 16:30:00 +00:00
|
|
|
*/
|
|
|
|
|
2015-11-05 05:57:57 +00:00
|
|
|
(function() {
|
|
|
|
|
|
|
|
var TemplateGenerator = require('./template-generator')
|
|
|
|
, FS = require('fs-extra')
|
|
|
|
, HTML = require( 'html' )
|
|
|
|
, PATH = require('path');
|
|
|
|
|
|
|
|
var HtmlGenerator = module.exports = TemplateGenerator.extend({
|
|
|
|
|
|
|
|
init: function() {
|
|
|
|
this._super( 'html' );
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
Copy satellite CSS files to the destination and optionally pretty-print
|
|
|
|
the HTML resume prior to saving.
|
|
|
|
*/
|
|
|
|
onBeforeSave: function( info ) {
|
|
|
|
return this.opts.prettify ?
|
|
|
|
HTML.prettyPrint( info.mk, this.opts.prettify ) : info.mk;
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}());
|