diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-01-27 21:56:00 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-01-27 21:56:00 +0100 |
commit | 8d277e9108afa6a027c61feb581a2150958f8571 (patch) | |
tree | 708a272a939c3e2089a2280d1358a4a9566e412e /lib/output.js | |
parent | f305d57ab7702c3ca10fd6e32366d19e524ee1f0 (diff) | |
download | gitbook-8d277e9108afa6a027c61feb581a2150958f8571.zip gitbook-8d277e9108afa6a027c61feb581a2150958f8571.tar.gz gitbook-8d277e9108afa6a027c61feb581a2150958f8571.tar.bz2 |
Add parsing of the glossary
Diffstat (limited to 'lib/output.js')
-rw-r--r-- | lib/output.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js index 2f40fb6..1c694a1 100644 --- a/lib/output.js +++ b/lib/output.js @@ -11,6 +11,11 @@ function Output(book, type) { this.generator = new generators[type](this, type); } +// Write a file to the output folder +Output.prototype.writeFile = function(filename, buf) { + +}; + // Start the generation, for a parsed book Output.prototype.generate = function() { var that = this; @@ -33,7 +38,7 @@ Output.prototype.generate = function() { if (isPage) { return that.generator.writePage(that.book.getPage(filename)); } else { - return that.generator.writeFile(filename); + return that.generator.writeAsset(filename); } }); }) |