I would like to create multiple files using the following Jinja syntax:
{% for item in my_list.split() %}{{ item }}{% endfor %}
This would generate two files named value_1 and value_2.
I would expect this functionality to work similarly to the conditional files and directories feature outlined here. I have been looking for tests in the repository for this specific feature but have only found tests related to conditional files and directories.
So, I am curious if this functionality is already supported. If not, does it make sense to add this feature?
Actual Situation
I would like to know if it's currently possible to create multiple files based on a space-separated list input using Copier's Jinja templating.
Desired Situation
For example, if I define a CLI question like this:
I would like to create multiple files using the following Jinja syntax:
This would generate two files named
value_1
andvalue_2
.I would expect this functionality to work similarly to the conditional files and directories feature outlined here. I have been looking for tests in the repository for this specific feature but have only found tests related to conditional files and directories.
So, I am curious if this functionality is already supported. If not, does it make sense to add this feature?
Thank you!
Proposed solution
No response