Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's new in Razor view engine 2.x?

I'm having trouble finding out what is new in Razor 2.x. Does anyone know?

Thanks.

like image 947
Jon Onstott Avatar asked Feb 27 '12 23:02

Jon Onstott


People also ask

Which view engine is better Razor or ASPX?

The Razor View Engine is a bit slower than the ASPX View Engine. Razor provides a new view engine with streamlined code for focused templating. Razor's syntax is very compact and improves readability of the markup and code. By default MVC supports ASPX (web forms) and Razor View Engine.

What does the Razor view engine consist of?

Razor View Engine is a markup syntax which helps us to write HTML and server-side code in web pages using C# or VB.Net. It is server-side markup language however it is not at all a programming language.

What is the difference between Razor view and Razor page?

The difference between them is that View Pages are Razor views that are used to provide the HTML representations (aka views) for services in much the same way View Pages work for MVC Controllers.

Why we use Razor View Engine in MVC?

It is a server side markup language. Razor has no ties to ASP.NET MVC because Razor is a general-purpose templating engine. You can use it anywhere to generate output like HTML. It's just that ASP.NET MVC has implemented a view engine that allows us to use Razor inside of an MVC application to produce HTML.


2 Answers

This blog entry is what I was looking for:

What's new, part 1:

http://vibrantcode.com/blog/2012/4/10/whats-new-in-razor-v2.html

What's new, part 2 (thanks DavGarcia!):

http://vibrantcode.com/blog/2012/4/13/what-else-is-new-in-razor-v2.html

like image 169
Jon Onstott Avatar answered Oct 04 '22 15:10

Jon Onstott


Did you go through the what's new part of the documentation? It's basically lots of OAuth and OpenID, Twitter, Facebook and Google stuff out of the box.

like image 33
Darin Dimitrov Avatar answered Oct 04 '22 16:10

Darin Dimitrov