"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const nunjucks_1 = require("@gem-mine/nunjucks");
const config_1 = require("../config");
const env_1 = require("../config/constant/env");
// 视图中间件
// 更多配置请查看：https://github.com/gem-mine/nunjucks
exports.default = nunjucks_1.default({
    path: `${config_1.default.APP}/template`,
    watch: config_1.default.ENV === env_1.default.local,
    noCache: config_1.default.ENV !== env_1.default.production,
    filters: {
        static(src) {
            return `/${src}`;
        }
    }
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taWRkbGV3YXJlL3ZpZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpREFBc0M7QUFDdEMsc0NBQThCO0FBQzlCLGdEQUF3QztBQUV4QyxRQUFRO0FBQ1IsK0NBQStDO0FBQy9DLGtCQUFlLGtCQUFLLENBQUM7SUFDbkIsSUFBSSxFQUFFLEdBQUcsZ0JBQU0sQ0FBQyxHQUFHLFdBQVc7SUFDOUIsS0FBSyxFQUFFLGdCQUFNLENBQUMsR0FBRyxLQUFLLGFBQUcsQ0FBQyxLQUFLO0lBQy9CLE9BQU8sRUFBRSxnQkFBTSxDQUFDLEdBQUcsS0FBSyxhQUFHLENBQUMsVUFBVTtJQUN0QyxPQUFPLEVBQUU7UUFDUCxNQUFNLENBQUMsR0FBVztZQUNoQixPQUFPLElBQUksR0FBRyxFQUFFLENBQUE7UUFDbEIsQ0FBQztLQUNGO0NBQ0YsQ0FBQyxDQUFBIn0=