Introducing “Razor” – a new view engine for ASP.NET
page 1 of 12
Published: 02 Jul 2010
Unedited - Community Contributed
In this article, Scott examines the Razor view engine used for building ASP.NET MVC applications. After a short introduction, he provides a detailed overview of the various design goals and then demonstrates a Hello World sample application with Razor. Scott also discusses the usage of HTML Helpers with special reference to code and declarative based helpers. Towards the end of the article, he examines the usage of Razor with Visual Studio 2010.
by Scott Guthrie
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 39549/ 102


Republished with Permission - Original Article

One of the things my team has been working on has been a new view engine option for ASP.NET.

ASP.NET MVC has always supported the concept of "view engines" – which are the pluggable modules that implement different template syntax options.  The “default” view engine for ASP.NET MVC today uses the same .aspx/.ascx/.master file templates as ASP.NET Web Forms.  Other popular ASP.NET MVC view engines used today include Spark and NHaml.

The new view-engine option we've been working on is optimized around HTML generation using a code-focused templating approach. The codename for this new view engine is "Razor", and we'll be shipping the first public beta of it shortly.

View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-05-18 3:38:14 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search