javascript - How to render locals into JSON file -


i taking @ sails generator code, , noticed rendering locals package.json file <%= variablename %>.

how do this? kind of special module? ejs thing? i've noticed yeoman generators same thing.

here's sails code

answer: use lodash or underscore templating render variables.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -