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

Is there a default slot value to fallback to? #48

Closed chris480 closed 3 years ago

chris480 commented 4 years ago
stringReplacers: ['__store__', { question: 'Insert model name', slot: '__model__' }],

Is there a way to allow an empty answer to fallback to some previously defined value?

codeBelt commented 4 years ago

No there is not.

alvaro-canepa commented 3 years ago

It would be useful to have it!.

Something like that:

stringReplacers: ['__store__', { question: 'Insert model name', slot: '__model__', default: 'defaultValue' }],