Hi,
Some random thoughts for a vague question:
- Use a base template for your HEAD section (and footer?) and the start of the BODY down to a super-parent DIV. Include other templates therein when you render a given page. (If you use Dancer2 for your app framework this is set up through config and works automatically.)
-
For a given page, start refactoring by creating the rendered page as a flat HTML file. Save this as the template, pare down to what needs to go in the main template above. Identify variable data and start inserting tokens. Switch the page over to TT rendering.
Hope this helps!
The way forward always starts with a minimal test.