Closed pascalpp closed 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?
_.templateSettings.variable
'data'
data.foo
data.bar
oh looks like it might be trivial to add. PR coming.
You should add a test for this.
Yeah i figured it should have a test. How do I run the tests in this repo?
npm test should run the tests ;).
npm test
sure enough : )
In our codebase, we have
_.templateSettings.variable
set to'data'
, so all our model data gets exposed into views asdata.foo
ordata.bar
. Is this setting supported by underscore-template-loader?