Is Microsoft pushing Spark or Razor for the future ASP.NET MVC viewer?

I plan to learn ASP.NET MVC soon. I wanted to get a clear idea of ​​which engine of vision I should focus on, Spark or Razor? Which one is Microsoft putting more energy into?

+3
source share
4 answers

Spark was not developed by Microsoft, and I would not say that they / intend to invest a lot of energy in it. Razor, on the other hand, is a child of Microsoft, and if you want the MS-enabled viewing engine to do it.

+5
source

Tony, I am one of the developers on the ASP.NET MVC team. Here are a few thoughts:

Razor, , Aspx , , ( , , ). Razor , MVC 3. , MVC 2 WebForms, , .

(Razor Aspx) - ( WebForms), , API-, - , , . , (, @model WebForms).

Spark Microsoft ( , ). , ( Razor). , API- . , MVC 3 " " " ", Spark ( , NHaml), Spark MVC.

( Aspx :), , , .

+10

Microsoft, - Razor WebForms. . Spark, , , Razor ( ), MS, , .

+2

Razor - , .

WebForms is good if you have a lot of experience with traditional ASP.NET and the idea of ​​creating code.

Spark is not supported or not written by Microsoft.

I use Razor for me because I like the syntax and I find my views a lot cleaner. I am sure that it is more detailed than haml, but at the same time it is still valid looking at HTML, and most web developers will pick it up naturally.

+2
source

Source: https://habr.com/ru/post/1786456/


All Articles