ASP.NET Razor: Difference between revisions

Content deleted Content added
VolkovBot (talk | contribs)
m r2.7.2) (Robot: Removing tr:Microsoft ASP.NET Razor
NWahl (talk | contribs)
mNo edit summary
Line 37:
 
==Introduction==
The Razor syntax is a template markup syntax, based on the C# programming language, 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 usingwith <code><%= %></code> blockssymbols to indicate code blocks the, Razor syntax starts of a code blockblocks with Razor using a @ character and does not require explicit closing of the code-block.
 
== Advantages of Razor==
 
The idea ofbehind Razor wasis to createprovide an optimized syntax for HTML generation using a code-focused templating approach, usingwith a minimization ofminimal transition between HTML and code.<ref name=MVC3rve>[http://www.asp.net/mvc/videos/mvc-3-%E2%80%93-razor-view-engine MVC 3 – Razor View Engine]</ref> The design reduces the number of characters and keystrokes required, and enables a more fluid coding workflow by not having torequiring explicitly denotedenoted server blocks within the HTML code.<ref name="IntroducingRazor" /> Other advantages that have been noted<ref name=pro1>[http://stackoverflow.com/questions/1451319/asp-net-mvc-view-engine-comparison ASP.NET MVC View Engine Comparison]</ref>:
 
* Is not a new language (no major changes to learn)