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.
answer: use lodash or underscore templating render variables.
Comments
Post a Comment