DEV Community

Discussion on: Alternative view engine for ASP.NET Core: Hooking into the ASP.NET Core architecture

Collapse
 
elfalem profile image
elfalem

I'm glad you liked it and thanks for reading! I do plan to write additional posts on some of the points mentioned at the end.

A custom view could be useful if the target output is not HTML (e.g. XML) as Razor is geared towards rendering HTML. Furthermore, it may not be desirable to mix server-side and client-side code. If a project is being ported from a different language or framework that uses a different template system, it may be easier to retain the existing views.