Question

I am struggling with WiewUserControls. What I want to accomplish is View without knowledge of which usercontrol have to call with RenderPartial in order to render some html.

What I want instead is to give some kind of IViewEngine interface and then View can only call on certain place in template methods of IViewEngine that will render content.

any ideas?

Was it helpful?

Solution

You could take a look at StringTemplate, which is a pure MVC templating engine. It has a C# port, with a ASP.NET View under construction.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top