HTML coding guidelines¶
We use Django templates to author HTML.
We use curlylint to lint templates and djhtml to format them.
If you have installed Wagtail’s testing dependencies (
pip install -e .[testing]), you can check your code by running
make lint, and format your code by running
make format. Alternatively you can also run
make lint-client for checking and
make format-client for formatting frontend (html/css/js) only files.