Calmcode - cookiecutter: cookiecutter.json

cookiecutter.json

1 2 3 4 5 6 7 8

Cookiecutter is defined with a json file. You can use it to define variables which will be used later. The way cookiecutter works is depicted in the diagram below.

The command line looks at the cookiecutter.json file and all surrounding files and folders that might contain a {{ cookiecutter.VARIABLE }} in it.

Note that the folder name is {{cookiecutter.project}}.

The contents of the cookiecutter.json file;

{
  "project": "project"
}

The contents of the readme.md file;

# readme of {{cookiecutter.project}}