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

Refactor generators to CoffeeScript classes.

This commit is contained in:
hacksalot
2016-02-02 13:38:12 -05:00
parent 63a0c78fc5
commit f72b02a0f4
26 changed files with 276 additions and 183 deletions

View File

@@ -1,6 +1,6 @@
###*
Definition of the JsonYamlGenerator class.
@module json-yaml-generator.js
@module generators/json-yaml-generator
@license MIT. See LICENSE.md for details.
###
@@ -18,9 +18,9 @@ JSON without a template, producing an equivalent YAML-formatted resume. See
also YamlGenerator (yaml-generator.js).
###
JsonYamlGenerator = module.exports = BaseGenerator.extend
module.exports = class JsonYamlGenerator extends BaseGenerator
init: () -> @_super 'yml'
constructor: () -> super 'yml'
invoke: ( rez, themeMarkup, cssInfo, opts ) ->
YAML.stringify JSON.parse( rez.stringify() ), Infinity, 2