ASP.NET MVC 3 Razor documentation [closed]

Is there any documentation on how to use the Razor view engine using ASP.NET MVC 3?

Or any other resources?

I am trying to find it in Google and MSDN with no luck so far.


Solution 1:

I would think that there will be no official documentation on MSDN as yet due to the status of the Razor and MVC3. However check

  1. http://weblogs.asp.net/scottgu/archive/2010/07/27/introducing-asp-net-mvc-3-preview-1.aspx
  2. Introducing “Razor” – a new view engine for ASP.NET
  3. ASP.NET MVC 3: New @model keyword in Razor
  4. ASP.NET MVC 3: Layouts with Razor
  5. ASP.NET MVC 3: Server-Side Comments with Razor
  6. ASP.NET MVC 3: Razor’s @: and syntax
  7. ASP.NET MVC 3: Implicit and Explicit code nuggets with Razor
  8. ASP.NET MVC 3: Layouts and Sections with Razor
  9. Razor Syntax Quick Reference - Phil Haack
  10. Introduction to ASP.NET Web Programming Using the Razor Syntax
  11. ASP.NET MVC 3 and the @helper syntax within Razor
  12. [MSDN Labs] ASP.NET MVC 3 Razor

Haacked also has a post as well, and provides link to other resources including ,Brad Wilson, Scott Gu and others.

New: http://www.asp.net/learn/whitepapers/mvc3-release-notes

Solution 2:

Until documentation is out specific to MVC3, you might want to start with the Razor docs available for the Web Matrix Beta 3 release. There is good information available on the syntax and structure of Razor.

Online: introduction-to-asp-net-web-programming-using-the-razor-syntax

PDF: ASPNETWebPagesWithRazorSyntax-Book-Beta3.pdf