From Wikipedia for FEVERv2
Jump to navigation Jump to search

ASP.NET Razor_table_infobox_0

RazorASP.NET Razor_table_caption_0
Original author(s)ASP.NET Razor_header_cell_0_0_0 MicrosoftASP.NET Razor_cell_0_0_1
Developer(s)ASP.NET Razor_header_cell_0_1_0 .NET FoundationASP.NET Razor_cell_0_1_1
Initial releaseASP.NET Razor_header_cell_0_2_0 June 2010; 10 years ago (2010-06)ASP.NET Razor_cell_0_2_1
Stable releaseASP.NET Razor_header_cell_0_3_0 3.2.7
  /    November 29, 2018; 2 years ago (2018-11-29)ASP.NET Razor_cell_0_3_1
Preview releaseASP.NET Razor_header_cell_0_4_0 4.0.0-rc1
  / November 18, 2015; 5 years ago (2015-11-18)ASP.NET Razor_cell_0_4_1
RepositoryASP.NET Razor_header_cell_0_5_0 ASP.NET Razor_cell_0_5_1
Written inASP.NET Razor_header_cell_0_6_0 C#, VB.NET, HTMLASP.NET Razor_cell_0_6_1
Operating systemASP.NET Razor_header_cell_0_7_0 Microsoft WindowsASP.NET Razor_cell_0_7_1
TypeASP.NET Razor_header_cell_0_8_0 Web application frameworkASP.NET Razor_cell_0_8_1
LicenseASP.NET Razor_header_cell_0_9_0 Apache License 2.0ASP.NET Razor_cell_0_9_1
WebsiteASP.NET Razor_header_cell_0_10_0 ASP.NET Razor_cell_0_10_1

ASP.NET Razor_table_infobox_1

Razor file formatsASP.NET Razor_table_caption_1
ASP.NET Razor_header_cell_1_0_0 .razor, .cshtml, .vbhtmlASP.NET Razor_cell_1_0_1
Internet media typeASP.NET Razor_header_cell_1_1_0 text/htmlASP.NET Razor_cell_1_1_1
Developed byASP.NET Razor_header_cell_1_2_0 MicrosoftASP.NET Razor_cell_1_2_1

Razor is an ASP.NET programming syntax used to create dynamic web pages with the C# or VB.NET programming languages. ASP.NET Razor_sentence_0

Razor was in development in June 2010 and was released for Microsoft Visual Studio 2010 in January 2011. ASP.NET Razor_sentence_1

Razor is a simple-syntax view engine and was released as part of MVC 3 and the WebMatrix tool set. ASP.NET Razor_sentence_2

Razor became a component of AspNetWebStack and then became a part of ASP.NET Core. ASP.NET Razor_sentence_3

Design ASP.NET Razor_section_0

The Razor syntax is a template markup syntax, based on the C# programming language, that enables the programmer to use an HTML construction workflow. ASP.NET Razor_sentence_4

Instead of using the ASP.NET Web Forms (.aspx) markup syntax with <%= %> symbols to indicate code blocks, Razor syntax starts code blocks with an @ character and does not require explicit closing of the code-block. ASP.NET Razor_sentence_5

The idea behind Razor is to provide an optimized syntax for HTML generation using a code-focused templating approach, with minimal transition between HTML and code. ASP.NET Razor_sentence_6

The design reduces the number of characters and keystrokes, and enables a more fluid coding workflow by not requiring explicitly denoted server blocks within the HTML code. ASP.NET Razor_sentence_7

Other advantages that have been noted: ASP.NET Razor_sentence_8

ASP.NET Razor_unordered_list_0

  • Supports IntelliSense – statement completion supportASP.NET Razor_item_0_0
  • Supports "layouts" – an alternative to the "master page" concept in classic Web Forms (.aspx)ASP.NET Razor_item_0_1
  • Unit testableASP.NET Razor_item_0_2

See also ASP.NET Razor_section_1

ASP.NET Razor_unordered_list_1

  • BlazorASP.NET Razor_item_1_3

Credits to the contents of this page go to the authors of the corresponding Wikipedia page: Razor.