Closed welefen closed 7 years ago
New config design, more for adapter:
const mysql = require('think-mysql'); { type: 'mysql', common: { // common fields logConnect: true, logSql: true }, mysql: { host: '127.0.0.1', username: 'www', password: '' parser: (options) => {} }, mysql2: { host: '10.0.1.1', username: 'www', password: '' }, mongo: { } }
const jade = require('think-view-jade'); const nunjucks = require('think-view-nunjucks'); { type: 'nunjucks', common: { extname: '.html', fileDep: '/' }, jade: { handle: jade // jade handler }, nunjucks: { handle: nunjucks, prerender: () => {}, } }
Agree!
New config design, more for adapter:
database
template