Content deleted Content added
m moved User:Twburger/Microsoft ASP.NET Razor View Engine to Microsoft ASP.NET Razor View Engine: Move from userspace to article space. |
Added advantages and criticism sections |
||
Line 6:
The Razor syntax is a template markup syntax that enables the programmer to use an HTML construction workflow and is based on the C# programming language. Instead of using the ASP.NET .ASPX markup syntax using <%= %> blocks to indicate code blocks the Razor syntax starts of a code block with Razor using a @ character and does not require explicit closing the code-block.
== Advantages of Razor==
* Compact, Expressive, and Fluid
* Easy to Learn
* Is not a new language
* Supports Intellisense
* Unit Testable
<ref name=pro1>[http://stackoverflow.com/questions/1451319/asp-net-mvc-view-engine-comparison]|ASP.NET MVC View Engine Comparison</ref>
==Criticism==
Using the Razor syntax could be awkward for programmers used to prior markup syntax and although it does cause complex views to be more readable there is minimum editing advantage for smaller views. The current ASP.NET MVC 3 does not yet support syntax highlight for Razor views<ref name=critic1>[http://geekswithblogs.net/mbridge/archive/2011/06/06/asp.net-mvc-3-hosting--understanding-razor-view-engine-asp.net.aspx]|ASP.NET MVC 3 Hosting :: Understanding Razor View Engine ASP.NET MVC 3 C#</ref>.
== References ==
|