shaunlee/node-jst — pull request #8 by tuchida (2012-12-30 12:07:22+00:00)
Title: The call of callback function was issued out of try-catch.

Since callback function is called in try-catch, when callback function has a bug, but looked like error in jst.renderFile.

```js
var jst = require('./node-jst/lib/jst.js');
jst.renderFile('test.jst', {}, function(err, res) {
if (err) {
console.log('error in jst.renderFile: ' + err);
return;
}
var a = null;
a.b; // bug's code
});
```

```
error in jst.renderFile: TypeError: Cannot read property 'b' of null
```

I consider that it is better to call a callback function outside try-catch.