Optimize html output
Problem to solve
Html output looks messing because of a lot of Jinja2 functions imbrications
Proposal
Improve the generated HTML with the use of :
- Jinja2 white space control : https://jinja.palletsprojects.com/en/2.11.x/templates/#whitespace-control
- Django html minifier : https://github.com/cobrateam/django-htmlmin#using-the-html_minify-function