gruntjs / grunt-init

Generate project scaffolding from a template.
http://gruntjs.com/project-scaffolding
MIT License
193 stars 58 forks source link

Issue with {%= prop %} #96

Closed jmalczak closed 7 years ago

jmalczak commented 9 years ago

Is there a way to use different placeholder for prop instead of {%= prop %}, for example PROP or PROP_NAME or something simple? I have a C# project where I would like to use grunt init and it works fine when I use {%= prop %}. The problem is that I cannot edit this project in any editor and cannot compile it due to {%= prop %} not being proper C# identifier name. If I could use PROP_NAME for example I could put in my code:

namespace PROP_NAME.Tests {

instead of

namespace {%= name %}.Tests {

so project would still compile and it would be much easier to work on template since I could work with it as with any other C# project and then just push to repo and use as template.

Thanks