We help IT Professionals succeed at work.

Multiple html pages having same content except heading

Rohit Bajaj
Rohit Bajaj asked
on
103 Views
Last Modified: 2017-05-12
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
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2017
Distinguished Expert 2019
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.