mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-15 10:07:07 +01:00
Introduce formal generators.
Introduce a shallow hierarchy of simple generator classes, collecting common functionality and allowing for future snap-in generator replacement. Use John Resig's "class"-based inheritance per http://ejohn.org/blog/simple-javascript-inheritance/.
This commit is contained in:
13
src/gen/base-generator.js
Normal file
13
src/gen/base-generator.js
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
Base resume generator for FluentCV.
|
||||
@license Copyright (c) 2015 by James M. Devlin. All rights reserved.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
var Class = require( './class' );
|
||||
var BaseGenerator = module.exports = Class.extend({
|
||||
init: function( outputFormat ) {
|
||||
this.format = outputFormat;
|
||||
}
|
||||
});
|
||||
}());
|
Reference in New Issue
Block a user