chrisenytc / slush-generator

A slush generator for create slush generators
https://www.npmjs.org/package/slush-generator
MIT License
30 stars 11 forks source link

vars in filename #21

Open troywweber7 opened 7 years ago

troywweber7 commented 7 years ago

Is it possible to have dynamic file names? i.e. prompt for className, and in templates there is a file with the name <%=className%>.ts or something similar?

I know the functionality is there to rename underscored files (i.e. _gitignore => .gitignore). If this feature doesn't already exist, maybe the syntax could be something like the above mentioned, or simpler like ~someVar~.ts (or, if this is expected to work on windows, maybe double-underscore __someVar__.ts).

This is not urgent, just something I'm looking into.