简体   繁体   中英

Custom Views in Multi-Tenant ASP.NET MVC Application

I want to start a new web project where the user can create and share content, which is displayed on a portal site and on a custom site for each user. This custom sites can be configured, for example you can choose a design and you can also override the templates.

I want to use ASP.NET MVC with Razor, because I have a alot of experience with C#, .NET and ASP.NET.t.

I see the following requirements: 1. You need very fast access to the templates. 2. Changing the templates means a new assembly that is loaded and cannot be unloaded. 3. The system should be ready for hundreds of sites.

At the beginning I thought It would be a good idea to have only one site, but If I need multiple servers I have to clone the templates. I only see the option to run a custom instance for each site, but this means that making updates becomes hard. Any ideas? How would you solve the problem?

您可以看看DotLiquid ,它是一种模板引擎,可以在不向用户提供过多功能的情况下使用(如果您给他们使用Razor的可能性,就会发生这种情况)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM