summaryrefslogtreecommitdiffstats
path: root/lib/generators/base.js
blob: 0fc0be91a7754f63a57ef41e061993d556223949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.writeAsset = 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;