0.0.5 • Published 12 years ago
koan-errors v0.0.5
Koa.js error handling middleware for Koan.js
Based on koa-error.
Supported content types:
- json
- html
Installation
$ npm install koan-errorsOptions
template: path to template (defaults to theerrors.htmlfrom the package),engine: templating engine to use (defaults toswig).
Custom templates
Following local variables are available within a custom template:
env,ctx,request,response,error,stack,status,code.
Contributions
- are welcome;
- should be tested;
- should follow Koa.js coding style.
License
Copyright (c) 2014 Ruslan Bredikhin



