I’m working on a widgetmanager for asp.net mvc and to get the main part to work, I need to load in a view from outside the default views folder. I got the following folder structure:
…
– Views
– Widgets
|- Views
I need the views to be loaded from inside ~/Widgets/Views
I’m not sure if I should be writing a Viewengine from scratch or do something else so please feel free to answer 🙂
p.S. The widgetmanager is called S3WidgetManager and can be found on GitHub
You could write a custom view engine and play around with the following base properties which allow you to customize the location of the views:
And here are their default values: