-
Can copier template single files? From what I recall, cookiecutter does not handle this. Rather than having separate files as templates: └───expected/
bar.md
baz.rst
foo.txt Cookiecutter requires directories: └───actual/
├───bar/
│ │ cookiecutter.json
│ │
│ └───{{cookiecutter.project_dir}}
│ {{cookiecutter.file_name}}.md
│
├───baz/
│ │ cookiecutter.json
│ │
│ └───{{cookiecutter.project_dir}}
│ {{cookiecutter.file_name}}.rst
│
└───foo/
│ cookiecutter.json
│
└───{{cookiecutter.project_dir}}
{{cookiecutter.file_name}}.txt
That's a bit complicated. How does copier approach this? |
Beta Was this translation helpful? Give feedback.
Answered by
yajo
Feb 5, 2021
Replies: 1 comment
-
I recall this appeared before... yes! This might answer your question: #231 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pylang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recall this appeared before... yes! This might answer your question: #231 (comment)