summaryrefslogtreecommitdiffstats
path: root/lib/generators/base.js
diff options
context:
space:
mode:
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;