If you build html using python , you can always make a template, and then connect to it separate html inserts through {% extends "base.html" %} . Something very similar is in Java with jsp .
The question arises whether it is possible to make a basic template without the participation of the server backend? I use AngularJS + Bootstrap 3 + nginx .