What are the use cases of jsdom

后端 未结 4 825
傲寒
傲寒 2021-01-31 15:43

After reading this Micro templates are dead article. I\'ve become curious:

  1. Whether Using the DOM on the server results in cleaner more maintainable code then templ
4条回答
  •  鱼传尺愫
    2021-01-31 15:55

    point 2 of your question can be answered by this templating testcase:

    go http://jsperf.com/dom-vs-innerhtml-based-templating/300

    • click the button "Run tests".

    • be patient, it compares weld vs. a lot of other template engines and gives you the current benchmarks ...

提交回复
热议问题