ASP.NET Razor: Difference between revisions

Content deleted Content added
Twburger (talk | contribs)
m grammatical correction
Twburger (talk | contribs)
Added more references and links. Added content.
Line 1:
{{Infobox software
{{Userspace draft|source=ArticleWizard|date=July 2011}}
| name = Razor View Engine Information
| logo =
| screenshot =
| caption =
| developer = [[Microsoft]]
| released = January 2011
| latest_release_version = ASP.NET MVC 3
| latest_release_date = {{start date and age|df=yes|2011|01|11}}
| genre = [[Web application framework]]
| license = [[Proprietary software|Proprietary]]
| programming language = [[C_Sharp_(programming_language)|C#]], [[Visual_Basic_.NET|VB]], [[Html|HTML]]
| operating system = [[Microsoft Windows]]
| website = {{URL|http://www.asp.net}}
}}
{{Infobox file format
| name = Razor View Engine File Format
| icon =
| logo =
| extension = .CSHTML or .VBHTML
| mime = text/html
| magic =
| owner = [[Microsoft]]
| released = <!-- {{Start date|YYYY|mm|dd|df=yes/no}} -->
| latest release version =
| latest release date = <!-- {{Start date and age|YYYY|mm|dd|df=yes/no}} -->
| genre =
| container for =
| contained by =
| extended from =
| extended to =
| standard =
| free =
| url =
}}
 
'''Microsoft ASP.NET Razor View Engine'''
 
''Overview''
 
Razor is an [[ASP.NET]] programming syntax used to create dynamic Web pages with the C# or Visual Basic programming languages. Razor was in development in June of 2010<ref name="IntroducingRazor">[http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx]|Introducing Razor</ref> and was released for Microsoft Visual Studio 2010 in January of 2011 <ref name="RazorsyntaxSupport">[http://blogs.msdn.com/b/webdevtools/archive/2011/01/12/how-to-get-razor-syntax-support-in-visual-studio-2010.aspx]|Razor syntax Support</ref>. Razor is a simple-syntax view engine and was released as part of ASP.NET Model View Controller (MVC) 3 and the WebMatrix tool set<ref name="RazorsyntaxSupport" />.
Line 12 ⟶ 44:
== Advantages of Razor==
 
The idea of Razor was to create an optimized syntax for HTML generation using a code-focused templating approach thatusing minimizesa minimization of 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 fast,more fluid coding workflow by not having to explicitly denote server blocks within the HTML code.<ref name="IntroducingRazor" />. Other advantages that have been noted:
 
* Is not a new language (no major changes to learn)
Line 30 ⟶ 62:
* [http://www.asp.net/webmatrix/tutorials/1-getting-started-with-webmatrix-and-asp-net-web-pages Getting Started with WebMatrix and ASP.NET Web Pages]
* [http://www.asp.net/mvc ASP.NET Model View Controller]
* [http://www.asp.net/mvc/videos/mvc-3-%E2%80%93-razor-view-engine Razor View Engine]
* [http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx Introducing “Razor” – a new view engine for ASP.NET]
* [http://www.codeproject.com/KB/aspnet/RazorMaps.aspx ASP.NET, MVC 3, the Razor View Engine and Google Maps]
 
<!--- Categories --->
[[Category:Computer Programming]]
[[Category:ASP.NET| ]]
[[Category:Template engines]]
[[Category:Web application frameworks]]
[[Category:Microsoft application programming interfaces]]
[[Category:Microsoft Visual Studio]]