blob: a2c33113d512e4fc15f93ba76736aa4d8c429fa3 (
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
|
var util = require('util');
var Generator = require('./base');
function WebsiteGenerator() {
Generator.apply(this, arguments);
}
util.inherits(WebsiteGenerator, Generator);
// Copy an asset file
WebsiteGenerator.prototype.writeAsset = function(filename) {
var that = this;
return that.book.readFile(filename)
.then(function(buf) {
return that.output.writeFile(filename, buf);
});
};
// Write a page (parsable file)
WebsiteGenerator.prototype.writePage = function(page) {
};
module.exports = WebsiteGenerator;
|