I think that the point here is that html templates are oriented towards writing things that are primarily web sites, and not data-heavy and UI-heavy applications that happen to use web browser as thin client.
I'm somehow trying to solve this problem by using jinja2 macros to the point of abuse and by having relatively large amount of python code that handles generating complex HTML (navigation, tables, forms, widgets...).