Use hook for configuration

This commit is contained in:
Samy Pessé
2016-02-25 12:03:33 +01:00
parent 08754bc626
commit edecf56dd6
+8
View File
@@ -59,6 +59,14 @@ Output.prototype.generate = function() {
});
})
// Transform the configuration
.then(function() {
return that.plugins.hook('config', that.book.config.dump())
.then(function(cfg) {
that.book.config.replace(cfg);
});
})
// Initialize the generation
.then(function() {
that.log.info.ln('preparing the generation');