Greetings to all my friends,
As a front end developer, I am in the process of implementing a dashboard for a project that involves different users with varying permissions. Each user should only have access to certain parts of the page, resulting in some similarities and minor differences between pages.
I would appreciate your suggestions on how to go about structuring these pages. Up until now, I have been creating a main page for managers (with the highest level of permission) and then duplicating that code into separate .jsp files for other users with necessary modifications. However, this method of copying similar code is not efficient and logical which leads me to my current dilemma.
I am seeking a way to create a general HTML template that can be reused rather than duplicating it multiple times. This way, specific parts of the template can be called upon based on the goals or needs of different users.
The technologies I am utilizing for this project include HTML, jsp, CSS, jQuery, and JavaScript.
Thank you in advance for your help.