How to manage multi tenant web portal css using Asp.Net MVC
I am designing a multi tenants web portal application using MVC.
Tenants will be identified by URL or tenant id. We are going to have a default set of skins and themes but per requirement each tenant can have its own skins and themes.
What is the best way to handle/atta开发者_如何转开发ch css for multi tenant web portal application?
How are they going to customize the skins? If it's by substituting a few variables into a a predefined CSS template, then you can save their settings in a database of CSS config values and retrieve them when rendering the page. If they can author CSS from scratch, it might be better to store the CSS as text and then retreive that from the database. That might make testing and debugging CSS a little more difficult.
精彩评论