You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Thank you!
Proposed solution
No response
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: