diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-04-22 11:00:21 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-04-22 11:00:21 +0200 |
commit | 4336fdb2414d460ffee68a0cc87c0cb0c85cf56e (patch) | |
tree | 279f711ab98666c892c19a7b9e4073a094f03f98 /lib/output/generators/json.js | |
parent | 87db7cf1d412fa6fbd18e9a7e4f4755f2c0c5547 (diff) | |
download | gitbook-4336fdb2414d460ffee68a0cc87c0cb0c85cf56e.zip gitbook-4336fdb2414d460ffee68a0cc87c0cb0c85cf56e.tar.gz gitbook-4336fdb2414d460ffee68a0cc87c0cb0c85cf56e.tar.bz2 |
Base
Diffstat (limited to 'lib/output/generators/json.js')
-rw-r--r-- | lib/output/generators/json.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/output/generators/json.js b/lib/output/generators/json.js new file mode 100644 index 0000000..e75ae7c --- /dev/null +++ b/lib/output/generators/json.js @@ -0,0 +1,26 @@ +var Promise = require('../../utils/promise'); + +var Modifier = require('../'); + + +function JSONGenerator(book) { + this.book = book; +} + + +JSONGenerator.prototype.onPage = function(page) { + return Modifier.HTMLTransformations(page, [ + Modifier.svgToImg(), + Modifier.svgToPng() + ]) + .then(function() { + + + }); +}; + +JSONGenerator.prototype.onAsset = function(file) { + +}; + +module.exports = JSONGenerator;
\ No newline at end of file |