Razor 2 is an upgrade of a template language used by ASP.NET Web Pages and ASP.NET MVC (since version 3), packaged with ASP.NET MVC 4.
Razor 2 is an upgrade of a template language used by ASP.NET Web Pages and ASP.NET MVC (since version 3), packaged with ASP.NET MVC 4. It supports seamless transitions between HTML markup and C# or VB.NET code. Transitions between markup and code are indicated by the "@" sign.
Razor is what Microsoft is calling a "code-focused templating approach". This would put it in the same category as WebForms, ERB, Smarty, velocity and many others. Other template engines, such as Spark or HAML are more declarative.