How to create a HTML template for multiple tasks?

Hey. We have a task where we want to display the same table or basically the same information over and over again. Currently we need to add the HTML code manually in every single HTML file for a task. If we add an element for example we have to make the same change in all files. This redundancy is horrible.

We get the data through REST calls or the variableManager. How can we just create a template and only fill in the values like in later Angular versions? We are using the basic Tasklist of Camunda.

Thank you.