module.exports = { // Extend website resources and html website: { assets: "./book", js: [ "test.js" ], css: [ "test.css" ], html: { "html:start": function() { return "" }, "html:end": function() { return "" }, "head:start": "", "head:end": "", "body:start": "", "body:end": "" } }, // Extend ebook resources and html website: { assets: "./book", js: [ "test.js" ], css: [ "test.css" ], html: { "html:start": function() { return "" }, "html:end": function() { return "" }, "head:start": "", "head:end": "", "body:start": "", "body:end": "" } }, // Extend templating blocks blocks: { // Author will be able to write "{% myTag %}World{% endMyTag %}" myTag: { process: function(blk) { return "Hello "+blk.body; } } }, // Extend templating filters filters: { // Author will be able to write "{{ 'test'|myFilter }}" myFilter: function(s) { return "Hello "+s; } }, // Hook process during build hooks: { // For all the hooks, this represent the current generator // This is called before the book is generated "init": function() { console.log("init!"); }, // This is called after the book generation "finish": function() { console.log("finish!"); } } };