Make template errors easy to understand and fix.
npm install template-error> Make template errors easy to understand and fix.
Install with npm
``sh`
$ npm i template-error --save
`js
var rethrow = require('template-error');
rethrow('\n<%= a %>\n<%= b %>', {
data: {a: 'aaa'}
});
`
When a template variable is not defined, like <%= b %> in the example above, instead of getting a cryptic error message and wasting time on debugging, you get this:

rethrow: Re-throw an error to get better error reporting for templates. | homepage
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 21, 2015._