Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

asked on

Multiple html pages having same content except heading

Hi,
I have around 3-4 Html pages... This is basically a Thymeleaf document in a spring web application...
The only thing that differs in all the three. is the top line... Some dont have any...
Some have a different sentence  and some have a different color in the sentence...
Now i obviously dont want to keep all the 4 html pages.. As this would be a lot of duplicacy...
What are the ways i can handle such a case...
One i can think of is a set of if else statement in the html page... And depending on the parameter being passed choose the approapriate heading...

Is there any alternative better way for the same ?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial