This commit is contained in:
2024-01-10 12:03:05 +05:00
parent 90dc9e967b
commit 75a14dba1d
5 changed files with 20 additions and 0 deletions

1
.gitignore vendored
View File

@@ -160,3 +160,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
test_output/

View File

@@ -0,0 +1,4 @@
{
"project_slug": "sample",
"foo": "bar"
}

View File

@@ -0,0 +1,8 @@
print("{{cookiecutter.project_slug}}")
{% if cookiecutter.foo == "bar" %}
print("{{cookiecutter.foo}}")
{% else %}
# print("{{cookiecutter.foo}}")
{% endif %}

6
main.py Normal file
View File

@@ -0,0 +1,6 @@
from cookiecutter.main import cookiecutter
cookiecutter("cookiecutter-test",
# directory=".",
extra_context={"foo": "quz"},
output_dir="test_output")

1
req.txt Normal file
View File

@@ -0,0 +1 @@
cookiecutter==2.5.0