What is best practice on ASP.NET MVC projects and extensionable/skinned systems?

て烟熏妆下的殇ゞ 提交于 2019-12-07 09:58:33
John Farrell

Skinning isn't that hard, just swap stylesheets. For using a different set of templates, yes, you'd need just customize, not write your own, viewengine. This is pretty easy and all you'd have to do is tell MVC to look in different places for your views:

http://www.dotnetguy.co.uk/post/2010/01/31/ASPNET-MVC-e28093-Dynamically-Changing-The-Master-Page-(Theming).aspx

The MVC plugins widgets question has been asked before:

https://stackoverflow.com/questions/2230482/asp-net-mvc-2-widgets/2230833#2230833

I ended up using a VirtualPathProvider since I wanted the views outside of the application. Now, we made it possible for the views to be stored in the database.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!