Dynamic answer file naming #860
Closed
nilsdebruin
started this conversation in
Ideas
Replies: 2 comments 4 replies
-
Can't that be done already? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Has been fixed |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
It is possible to define an answer file in the copier.yml like for example:
_answers_file: .copier-answers-copier-template.yml
It would be really nice if this could be extended with a dynamic value that you could set as a jinja variable like this:
_answers_file: .copier-answers-copier-template-{{module_name}}.yml
Where module_name is an answer you can give in copier.yml like:
This would make It possible to create multiple instances of a template in the same structure like:
This would create two answer files:
These template instances could then be updated based on these answer files.
Beta Was this translation helpful? Give feedback.
All reactions