How will you register a custom view engine where in the Areas will not be affected?
- by Fleents
I made a custom view engine for my application.
~/Themes/Default/Views..
And I have an Area called Admin.
Area/Admin/Views..
I register my custom view engine in Global.asax :
RegisterViewEngines(ViewEngines.Engines);
AreaRegistration.RegisterAllAreas();
RegisterRoutes(RouteTable.Routes);
When I browsed my admin site, it cant find the views..
I know its because of my custom view engine..
But how can you register new custom view engine
without affecting the view engine of areas?