Simon Willison: TILs on cookiecutter

cookiecutter Conditionally creating directories in cookiecutter - 2021-01-27

I wanted my datasette-plugin cookiecutter template to create empty static and templates directories if the user replied y to the include_static_directory and include_templates_directory prompts. …

cookiecutter Testing cookiecutter templates with pytest - 2021-01-27

I added some unit tests to my datasette-plugin cookiecutter template today, since the latest features involved adding a hooks/post_gen_project.py script. …