I'm having trouble finding out what is new in Razor 2.x. Does anyone know?
Thanks.
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.
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.
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.
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With