To Spark or not to Spark?

前端 未结 5 1604
灰色年华
灰色年华 2021-02-20 00:46

Been on a huge learning binge with ASP.MVC 2 lately, and recently uncovered there are different rendering engines out there... Spark especially caught my attention, couple of th

5条回答
  •  离开以前
    2021-02-20 01:27

    Actually, I was faced to the same choice several months ago, but for real business application, not for educational purpose. My answer is "to spark".

    Certainly, there are some tricky things like intellisense and includes for pre-compilation. But from my prospective, the benefits are more significant. "Readability" of views is much better in spark. There is more elegant separation into partials (again, my personal opinion). I also found spark way of site localization more natural (MyView.spark, MyView.de.spark, MyView.de-DE.spark with automatic fallback, and the same for master layouts). A plenty of small conveniences - best of all I love ${} and !{} to get html encoding or to avoid it. My application works in medium trust being pre-complied.

    I would rather say that spark is mature enough to be used in real development. But not perfect.

提交回复
热议问题