codeBelt / generate-template-files

A simple generator to create custom template files for any application
https://medium.com/@robertsavian/generate-template-files-with-ease-19b320615359
MIT License
209 stars 31 forks source link

Having a default replacement string #81

Open dhmcloud opened 1 year ago

dhmcloud commented 1 year ago

It would be great if we could set a default string for replacement, are there any plans to add this?

Something like

      { question: "Which directory?", slot: "__dir__", defaultString: "components" },
tomdoyleiom commented 1 year ago

This would be super useful! I'm using generate-template-files to template out components, and default values would allow me to setup conditional fields, such as props definitions and state, etc.