Skip to content

Commit

Permalink
Merge pull request #2 from dafyddj/feat/answers
Browse files Browse the repository at this point in the history
feat: add answers file and configure templates suffix
  • Loading branch information
dafyddj authored Jan 10, 2024
2 parents 04b9116 + 1b86639 commit d63669d
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base
Submodule base updated 1 files
+1 −0 copier.yaml
1 change: 1 addition & 0 deletions copier.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
_subdirectory: template
_templates_suffix: .copier-jinja
1 change: 1 addition & 0 deletions template/copier.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
_subdirectory: template
_templates_suffix: .copier-jinja
Empty file removed template/template/.gitkeep
Empty file.
2 changes: 2 additions & 0 deletions template/{{ _copier_conf.answers_file }}.copier-jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
{{ _copier_answers|to_nice_yaml -}}
2 changes: 1 addition & 1 deletion test/GenerateProject/catalogue.tt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The following new files/directories were created:
--------copier
----copier.yaml
----template
--------.gitkeep
--------{{ _copier_conf.answers_file }}.jinja
----test
--------config.tt
--------options.tt
Expand Down
1 change: 1 addition & 0 deletions test/GenerateProject/copier_yaml.tt
1 change: 1 addition & 0 deletions test/config.tt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ discard_file:stderr

[collate_file]
config_tt:test/config.tt
copier_yaml:copier.yaml
main_yml:.github/workflows/main.yml
pre-commit_yaml:.pre-commit-config.yaml

0 comments on commit d63669d

Please sign in to comment.