我喜欢 this template library 的 JS 语法。我将在 Node.js 脚本中使用它,因此,性能非常重要。有人试过这个吗? (他们的网站运行速度太慢,以至于我认为他们的库运行得足够快:))。

最佳答案

灰尘与其他模板引擎的实时性能比较: http://akdubya.github.com/dustjs/benchmark/index.html 。它基本上打败了其他库(Mustache、Handlebars 和 jQuery 模板)。

如果您对这些结果不满意,请 roll your own benchmark

至于 Dust“网站”的缓慢——它只是一个 github project page 。我没有注意到该网站有任何性能问题。

关于javascript - Dustjs : what about performance?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6227900/

10-09 03:44