UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

12 lines 428 B
module.exports = function container (get, set) { var Templ = get('vendor.templ').Templ var specs = get('conf.middleware.templ.specs') var options = get('conf.middleware.templ') options.handlebars = get('vendor.handlebars') if (specs.length) { var templ = new Templ(specs, options) set('@middleware.templ_instance', templ) return templ.middleware(options) } return function (req, res, next) { next() } }