index.js 613 字节
Newer Older
Lab机器人's avatar
readme  
Lab机器人 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
var _start = require('./assets/lib/plugin');
var Config = require('./assets/lib/config');
require('./assets/lib/log');
module.exports = {
    book: {
        assets: "./assets",
        css: ["style/plugin.css"]
    },
    hooks: {
        "init": function () {
            Config.handlerAll(this);
        },
        "page": function (page) {
            if (Config.config.printLog) {
                console.info("INFO:".info + "当前正在处理:" + page.path)
            }
            var bookIns = this;
            _start(bookIns, page);
            return page;
        }
    }
};