Skip to content

Repo for templates storage. Use it through DND-IT/tam-cli.

Notifications You must be signed in to change notification settings

tx-pts-dai/templates

Repository files navigation

Templates

Holds templates that can be customized through your favourite template engine (e.g. Jinja).

For an application you can pick your favourite base, and then add any addons you like.

These are the rules:

  1. Only 1 base must be used.
  2. 0 to infinite addons can be added (afterwards).

That's how you identify if your template is a base or an addon.

Cookiecutter

This repository maintains multiple cookiecutter templates.

To configure a cookie cutter template, create a cookiecutter.json file in the root of the template directory and add your folder with the templated files. Folder names can also be templated, so you can use the @{{ cookiecutter.project_slug }} variable in the folder name.

Example:

mkdocs
├── @{{ cookiecutter.project_slug }}
│   ├── docs
│   │   ├── README.md
│   │   ├── faq.md
│   │   ├── getting-started.md
│   │   ├── index.md
│   │   └── requirements.txt
│   └── mkdocs.yaml
└── cookiecutter.json

All the variables in the cookiecutter.json file are required to be used at least once in the template files otherwise an error will be produced.