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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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