Re-throw an error to get better error reporting for templates.
npm install rethrow> Re-throw an error to get better error reporting for templates.
Based on rethrow in Jade.
Example

Install with npm
``sh`
$ npm i rethrow --save
`js`
var rethrow = require('rethrow');
See template-error for usage examples.
Re-throw the given err in context to the offendingfilename
template expression in at the given lineno.
Params
* err {Error}: Error objectfilename
* {String}: The file path of the templatelineno
* {String}: The line number of the expression causing the error.str
* {String}: Template string
* assemble: Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… more
* template-error: Make template errors easy to understand and fix.
* template: Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… more
* verb: Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… more
Install dev dependencies:
`sh``
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert
Copyright © 2015 Jon Schlinkert
Released under the MIT license.
*
_This file was generated by verb-cli on August 11, 2015._