Razor is the new view engine for ASP.NET
ASP.NET MVC has always supported the concept of “view engines” – which are the pluggable modules that implement different template syntax options. The “default” view engine for ASP.NET MVC today uses the same .aspx/.ascx/.master file templates as ASP.NET Web Forms. Other popular ASP.NET MVC view engines used today include Spark and NHaml.
Design Goals of Razor:-
1. Compact, Expressive, and Fluid
2. Easy to Learn
3. Is not a new language
4. Works with any Text Editor
5. Has great Intellisense
6. Unit Testable
ASP.NET MVC has always supported the concept of “view engines” – which are the pluggable modules that implement different template syntax options. The “default” view engine for ASP.NET MVC today uses the same .aspx/.ascx/.master file templates as ASP.NET Web Forms. Other popular ASP.NET MVC view engines used today include Spark and NHaml.
Design Goals of Razor:-
1. Compact, Expressive, and Fluid
2. Easy to Learn
3. Is not a new language
4. Works with any Text Editor
5. Has great Intellisense
6. Unit Testable
No comments:
Post a Comment