0.2.0 • Published 10 years ago

m-koa-swig v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

Another koa swig extension

Comparation to the koa-modules/koa-swig

Source:

exports = module.exports = extend
exports.swig = swig
exports.setDefaults = swig.setDefaults
exports.setFilter = swig.setFilter

As it is coded, this module don't mix its own config with swig's, which can be a really mess both in code and user experience.

The only option it accepts is root which tell the module where to find your .html files.

Yes, sir. The ext option is not supported and please use .html as your view files' ext name.

Besides, writeBody is canceled too. As it's commonly hard to decide whether to write body at this level.

License

MIT

0.2.0

10 years ago

0.1.1

10 years ago