Test
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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/
|
||||||
4
cookiecutter-test/cookiecutter.json
Normal file
4
cookiecutter-test/cookiecutter.json
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"project_slug": "sample",
|
||||||
|
"foo": "bar"
|
||||||
|
}
|
||||||
8
cookiecutter-test/{{cookiecutter.project_slug}}/main.py
Normal file
8
cookiecutter-test/{{cookiecutter.project_slug}}/main.py
Normal 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
6
main.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
from cookiecutter.main import cookiecutter
|
||||||
|
|
||||||
|
cookiecutter("cookiecutter-test",
|
||||||
|
# directory=".",
|
||||||
|
extra_context={"foo": "quz"},
|
||||||
|
output_dir="test_output")
|
||||||
Reference in New Issue
Block a user