Difference between View engine & Razor view engine
View engine :-
A view engine is the part of the asp.net mvc
Which is used to execute the code by programming any kind of rendering is required and delivering to client.
net mvc supports following view engine
- Web form view engine
- Hasic (Support VB .net only)
- N Django
- N Haml
- N Velocity view engine (MVC Contrib)
- Spark view engine
- String template. View Engine MVC
- Wing Beates
- XSLT view engine
Interested in mastering ASP.net?Learn more about ASP.net Tutorial in this blog post.
Razor view Engine :-
Razor view engine is not a programming language and it will work with C# and VB.net languages.
Razor is an asp.net programming syntax. used to create dynamic web pages . with the help of C# and VB. Net
the first version of Razor is released Jan 2011 along with ASP.net mvc 3 version.
- We can Razor syntax using ‘@’symbol instead on <% = %> class.
- This @ symbol technical name is ‘verbatim’
Design Goals Razor:-
Compact, Expressive, fluid :-
That is takes less memory as compares with web form view engine.
We can see more output by writing less of code then also
Any asp.net programmer can learn the razor syntax with team effort.
It is not a separate language rather it will work with C# and VB
Work with Any Text Editor:-
Has great Intelligence:-
When working with visual studio .net or visual web matrix we get all the features
Unit testable :-
Most flexible and easy for TDO .
For indepth understanding click on