"Razor" A new view engine for ASP.NET MVC optimized around HTML

ASP.NET MVC has always supported "view engines," which're pluggable modules, that implement different template syntax options. "default?" view engine for ASP.NET MVC today uses same .aspx/.ascx/.master file templates as ASP.NET Web Forms. Other popular ASP.NET MVC view engines used today include Spark and NHaml."The new view-engine option codename "Razor" is currently under development, is optimized […]

Share online:

ASP.NET MVC has always supported "view engines," which're pluggable modules, that implement different template syntax options. "default?" view engine for ASP.NET MVC today uses same .aspx/.ascx/.master file templates as ASP.NET Web Forms. Other popular ASP.NET MVC view engines used today include Spark and NHaml.

"The new view-engine option codename "Razor" is currently under development, is optimized around HTML generation using a code-focused templating approach. It's coding workflow is fast, expressive and fun. It's syntax is compact and reduces typing – while at the same time improving overall readability of your markup and code. It'll be shipping as a built-in view engine with next release of ASP.NET MVC. You can also drop standalone .cshtml/.vbhtml files into your application and run them as single-pages – which also enables you to take advantage of it within ASP.NET Web Forms applications as well," explains Scott Guthrie.

[Source]

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.