Skip to content

how to use a subdirectory that have a templated name ? #1322

Answered by pawamoy
12rambau asked this question in Q&A
Discussion options

You must be logged in to vote

The template subdirectory name cannot be templated. It's just the root folder of the project that will be generated, and the user always chooses the name of the generated project (copier copy template user_chosen_name). So my recommendation is to:

  1. rename the subdirectory (to something simple like project for example)
  2. remove the github_repo_name question from copier.yml (or use it for something else)

If you have multiple subdirectories though, that a user can choose from, then the question makes sense. The subdirectory names must still not be templated. The question should offer a few choices, and there should be one subdirectory for each choice.

Let me know if anything is unclear, I can…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by 12rambau
Comment options

You must be logged in to vote
2 replies
@pawamoy
Comment options

@12rambau
Comment options

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