Commit d6f2ad2
committed
✨ Add the
This can be used later to update the template more easily with `copier update`. A few
notes to make the changes more clear:
1. The file is named `{{ _copier_conf.answers_file }}.jinja` to use the `copier`
configuration to template the filename, should we ever change it in the `copier.yml`
file. This is recommended by the documentation.
2. We place the file in the `template` directory, else it is not actually generated
when we run `copier copy`.
3. The contents are also entirely dictated by the documentation, but they make sense.
The `_copier_answers` will contain the answers given by the user, and it seems they
wrote a `to_nice_yaml` to make it easier to write to the targetted YAML file.
We link the corresponding documentation here for reference:
https://copier.readthedocs.io/en/latest/configuring/#the-copier-answersyml-filecopier answer file to template1 parent 123bb3c commit d6f2ad2
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments