As we know, MVC in .Net supports two view engines, namely, ASPX and Razor. I have read several articels and have observed that Razor is unanimously(almost) considered as a better option between the two. The reasons being:
- Razor is clean - Agreed. The syntax itself makes it cleaner.
- Razor syntax is simple - Agreed. There is no need to close the tags.
- Razor is light-weight - I am unable to understand why is it considered light-weight ?
EDIT 1
Other differences: - The design can be viewed in the ASPX engine while it cannot be viewed in Razor engine.
Also, apart from these differences, are there any other differences which make Razor and ASPX significantly different ?
If I am missing any other basic difference/point here, please point it out since I have been able to summarize only the above after reading several articles.