I am creating a 2 level content management system, where the admin would be able to change the content and layout of the entire website. Currently I am working on so that the admin would be able change diiffrent style sheet attributes from the admin menu
For the <h1> defined in the stylesheet, the admin would be able to dynamically change the font_size, font_color etc.
It might be looking easy to you but the tricky part is this same web content managenet appliation wll be used by many people, which means that many people will have this same website but with differnt data and layout(color, images) etc, all differntiated by a webiste ID.
Now what I thought was that I will have a form where I take the users input on the font and save it in a database using that webiste ID. When the users of the wesite try to access the site the style is generated from the data in the database. But this seems to be hectic procedure because everytime the user tried to access a page of the wesite it will have to re-generate the stylesheet again.
Now is there any easy way I can generate the stylesheet only once. Any help will be greatly appreciated