FazBrowse Wikipedia Viewer | Main Page |
Search Wikipedia:
|
Viewing: https://en.wikipedia.org/wiki/ASP.NET_Razor

ASP.NET Razor

Contents
See also
References
External links

{{cite web |title=Microsoft ASP.NET Razor |url=https://www.nuget.org/packages/Microsoft.AspNet.Razor/ |website=[[NuGet]] |access-date=2015-12-03 |archive-date=2022-04-05 |archive-url=https://web.archive.org/web/20220405102339/https://www.nuget.org/packages/Microsoft.AspNet.Razor/ |url-status=live }}</ref>"},"latest preview version":{"wt":"4.0.0-rc1"},"latest preview date":{"wt":"{{Start date and age|2015|11|18}}"},"repo":{"wt":"{{URL|https://github.com/aspnet/Razor}}<br />{{URL|https://github.com/aspnet/AspNetWebStack}}<br />{{URL|https://github.com/dotnet/aspnetcore}}"},"programming language":{"wt":"[[C Sharp (programming language)|C#]], [[Visual Basic .NET|VB.NET]], [[HTML]]"},"operating system":{"wt":"[[Microsoft Windows]]<ref>{{cite web |title=Introduction to Razor Pages in ASP.NET Core |url=https://learn.microsoft.com/en-us/aspnet/core/razor-pages/?view=aspnetcore-6.0&tabs=visual-studio |website=learn.microsoft.com |date=27 September 2024 |language=en-us |access-date=30 October 2022 |archive-date=30 October 2022 |archive-url=https://web.archive.org/web/20221030191706/https://learn.microsoft.com/en-us/aspnet/core/razor-pages/?view=aspnetcore-6.0&tabs=visual-studio |url-status=live }}</ref>"},"genre":{"wt":"[[Web application framework]]"},"license":{"wt":"[[Apache License 2.0]]<ref>{{cite web |url=https://github.com/aspnet/Razor/blob/master/LICENSE.txt |title=Razor/LICENSE.txt at master · aspnet/Razor · GitHub |work=GitHub |date=12 October 2022 |access-date=24 June 2019 |archive-date=5 April 2022 |archive-url=https://web.archive.org/web/20220405102339/https://github.com/aspnet/Razor/blob/master/LICENSE.txt |url-status=live }}</ref>"},"website":{"wt":"{{URL|http://www.asp.net/web-pages}}"}},"i":0}}]}'>
Razor
Original authorMicrosoft
Developer.NET Foundation
ReleaseJune 2010;16 years ago (2010-06)
Razor file formats
Filename extension
.razor, .cshtml, .vbhtml
Internet media type 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.

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. 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. Other advantages that have been noted:

See also

edit

References

edit
"Razor/LICENSE.txt at master · aspnet/Razor · GitHub". GitHub. 12 October 2022. Archived from the original on 5 April 2022. Retrieved 24 June 2019.
  • 1 2 "MSDN Blogs". msdn.com. Microsoft. Archived from the original on 2012-07-02. Retrieved 2011-07-08.
  • ↑ "ASP.NET MVC View Engine Comparison". stackoverflow.com. Archived from the original on 2022-04-24. Retrieved 2016-07-25.
  • External links

    edit
    Wikibooks has a book on the topic of: .NET Development Foundation
    Implementations
    Architecture
    Components
    Tools
    Decompilers
    Obfuscators
    IDEs
    Organizations
    Overview
    Software
    Applications
    Video games
    Programming
    languages
    Frameworks,
    development tools
    Operating systems
    Other
    Licenses
    Forges
    Related

    View original on Wikipedia | Back | FazBrowse Home