emaphp / underscore-template-loader

A Underscore and Lodash template loader for Webpack
MIT License
104 stars 24 forks source link

support for _.templateSettings.variable ? #8

Closed pascalpp closed 8 years ago

pascalpp commented 8 years ago

In our codebase, we have _.templateSettings.variable set to 'data', so all our model data gets exposed into views as data.foo or data.bar. Is this setting supported by underscore-template-loader?

pascalpp commented 8 years ago

oh looks like it might be trivial to add. PR coming.

SpaceK33z commented 8 years ago

You should add a test for this.

pascalpp commented 8 years ago

Yeah i figured it should have a test. How do I run the tests in this repo?

SpaceK33z commented 8 years ago

npm test should run the tests ;).

pascalpp commented 8 years ago

sure enough : )