Skip to content

Question about asking questions and generation in a loop #382

Answered by yajo
amitjindal asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer is no. Copier is designed to be configurable using a YAML file, which is just data, so it cannot contain logic.

However, there are alternative strategies you can follow:

  1. Consider one model to be one template. This way, you con copy as many times as models you need. And each one has its own questionary.
  2. Using copier's api to make it behave differently. Maybe, implementing a custom questionary and then passing the answers to the worker. Check latest alphas if you mean to do this, because api was refactored for v6.
  3. Using tasks to automate something after rendering? I hope #240 helps on that when fixed.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amitjindal
Comment options

Answer selected by amitjindal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #381 on April 01, 2021 13:27.