I'm currently working on a legacy eCommerce system front-end that has alot of duplicate HTML code.
I'm trying to find a way to abstract out the complexity almost as you would when moving the similarities between similar classes into a shared abstract base-class.
I.E. "Taking out what changes and abstracting it"
I've used Java frameworks such as Tiles to do this before, but currently I'm using Webby.
Also when previously abstracting HTML, I was writing the code from scratch and using an MVC framework, so this made things a bit easier (didn't have to compare anything with diff).
Would anyone know another term for what I am describing, or perhaps a good article on the abstraction of existing HTML code for this purpose?