node-underscorify icon indicating copy to clipboard operation
node-underscorify copied to clipboard

Underscore template pre-compiler for browserify

Results 9 node-underscorify issues
Sort by recently updated
recently updated
newest added

The html-minifier dependency is currently configured at 0.5.6. New versions offer the `ignoreCustomFragments` option which allows minification to occur correctly in some underscore template use-cases. For example: ``` ``` Does...

I'm writing tests to run in node.js with mocha via jsdom (following [this example](https://github.com/craigspaeth/backbone-headless-testing/blob/master/test/unit/views.todos_list_view.js)) and I notice node-underscorify does not have an effect when the `require()` is done outside of...

After a change, the following output is produced module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+=module.exports=function(obj){{var __t,__p="";Array.prototype.join}with(obj||{})__p+= It gets duplicated every time the watch fires

And file (template) with `node_modules` in its path is ignored by this transform. This may be an expected behavior in Browserify, but if that's the case I'd recommend documenting how...

I'm attempting to pass templateSettings via [grunt-browserify](https://github.com/jmreidy/grunt-browserify#transform). My `Gruntfile` looks like: ``` javascript var template_opts = { interpolate: /\{\{(.+?)\}\}/g, escape: /\{-(.+?)\}/g, evaluate: //g }; module.exports = function( grunt ) {...

Hi, I followed the instructions and ran `browserify -t node-underscorify content.js > content-bundle.js` but I get this error: ``` Error: module "./htmlparser" not found from "/Users/macuser/prj/static/node_modules/node-underscorify/node_modules/html-minifier/dist/htmlminifier.js" at notFound (/usr/local/lib/node_modules/browserify/index.js:812:15) at...

Could we catch the error that underscore throws, add the filename and rethrow it ?

I'm able to add node-underscorify to browserify's transform array via package.json, but it'd be great to also be able to specify the node-underscorify options here as well.

To ease contribution: - add a ~`npm build` command - not version generated JS files but rather use `prepublish` scripts - add your version of coffee in `devDependencies` - add...