Thanks to T240234, we now have a cool 'email.html' template. However, most email rendering is still done in a confusing and cramped way within 'app.py'.
It would be much nicer and easier to work with if we did all rendering in this 'email.html' template.