I know that ASP.NET MVC will allow me to swap in various View engines that other people have created, but I am wondering how can I create my own View engine?
More info: We have our own webforms based CMS and the main selling point about MVC is that it gives us cleaner HTML (which our designers would love). However we have a desire to create our own domain-specific View implementation.
As you know MVC is highly extensible hence you can completely replace the Razor view engine with a new custom razor engine.
ASPX or Web Form Engine is the default view engine for ASP.NET that is included with ASP.NET MVC from the beginning itself. The syntax used for writing a view with the ASPX View Engine is the same as the syntax used in the ASP.NET web forms.
OK, I did some Google-fu and found these posts:
Adding support for skins in an ASP.NET MVC application
Partial Rendering & View Engines in ASP.NET MVC
I think I can work it out from what these guys say - I just hope that it still applies in the latest ASP.NET MVC drop!
EDIT: There is also a nice post about using VB.NET XML literals for a view engine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With