maxparm / node-underscorify

Underscore template pre-compiler for browserify
MIT License
31 stars 12 forks source link

If template cannot be compiled, emit error instead of crashing process #19

Closed m90 closed 3 years ago

m90 commented 7 years ago

It is currently not possible to catch and handle errors in a gulp-like environment as we are not emitting an error event to the stream.

The 2nd commit is due to a breaking change in the CoffeeScript compiler which changes the handling of obj[key] checks, so we need to be sure opts already exists.