summaryrefslogtreecommitdiffstats
path: root/lib/generators/base.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-01-27 10:24:06 +0100
committerSamy Pessé <samypesse@gmail.com>2016-01-27 10:24:06 +0100
commitf305d57ab7702c3ca10fd6e32366d19e524ee1f0 (patch)
tree381ccb09c7cedc72cdf8ad6c98b681b72f4d1bc0 /lib/generators/base.js
parent877f2e477b010f9f37a9044606f110a90f077680 (diff)
downloadgitbook-f305d57ab7702c3ca10fd6e32366d19e524ee1f0.zip
gitbook-f305d57ab7702c3ca10fd6e32366d19e524ee1f0.tar.gz
gitbook-f305d57ab7702c3ca10fd6e32366d19e524ee1f0.tar.bz2
Add more classes structures
Diffstat (limited to 'lib/generators/base.js')
-rw-r--r--lib/generators/base.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/generators/base.js b/lib/generators/base.js
new file mode 100644
index 0000000..554a389
--- /dev/null
+++ b/lib/generators/base.js
@@ -0,0 +1,29 @@
+
+function Generator(output, type) {
+ this.output = output;
+ this.book = output.book;
+ this.type = type;
+}
+
+// Prepare the generation
+Generator.prototype.prepare = function() {
+
+};
+
+// Copy an asset file (non-parsable), ex: images, etc
+Generator.prototype.writeFile = function(filename) {
+
+};
+
+// Write a page (parsable file), ex: markdown, etc
+Generator.prototype.writePage = function(page) {
+
+};
+
+// Finish the generation
+Generator.prototype.finish = function() {
+
+};
+
+
+module.exports = Generator;