TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Javascript Templating Engine Chooser

70 点作者 chunkyslink将近 12 年前

18 条评论

jlongster将近 12 年前
It's also missing Nunjucks, which works in browser and server, can precompile templates (when done so is really fast), lets you do more logic in templates, has autoescaping, and a bunch of other stuff. Some big project like Mozilla's new Marketplace is using it.<p><a href="https://github.com/jlongster/nunjucks" rel="nofollow">https://github.com/jlongster/nunjucks</a>
评论 #5800514 未加载
Torn将近 12 年前
It's missing DustJS, which is IMO a strong contender that does well in benchmarks<p><a href="http://linkedin.github.io/dustjs/" rel="nofollow">http://linkedin.github.io/dustjs/</a><p>* Works in the browser and on the server<p>* Pretty fast<p>* logic-less but with a helpers API for when you need more power<p>* pre-compiles templates<p>* has template partials
评论 #5801091 未加载
评论 #5799203 未加载
评论 #5801755 未加载
xinsight将近 12 年前
Is there a way to deselect an option without reloading the page?<p>For example: Under "DOM Structure", once you select "DOM" or "String", you can never go back to seeing all the template options.
评论 #5800911 未加载
antimagic将近 12 年前
Hmmm, I wonder about the reliability of the information, or perhaps reliability is not the right word, maybe completeness would be better.<p>I don't know who Garann is, and I don't use Javascript templating, and yet just by playing with the options on the page I was able to predict that Garann is using with dot.js. A quick Google then confirmed the hypothesis, which makes me think that the options that are available are aimed quite specifically at Garann's use case, and might not be generally applicable.
jtchang将近 12 年前
This is just one of the reasons why I feel developing web apps has gotten harder. While there are a lot of javascript frameworks it is likely two projects pick different routes. It basically means if I need to maintain a project I will have to learn a new javascript library.
评论 #5799933 未加载
评论 #5799868 未加载
评论 #5801048 未加载
thezilch将近 12 年前
Missing several from LinkedIn's throwdown: <a href="http://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more" rel="nofollow">http://engineering.linkedin.com/frontend/client-side-templat...</a>
tlrobinson将近 12 年前
I'd rather just see a matrix.
评论 #5799620 未加载
NKCSS将近 12 年前
Nicely put together :) Might want to hide a feature if the selection makes no difference (re-show when it does have potential to make a difference).<p>Example: Both, Entirety, Fastest, Then it doesn't matter if you say precompiled yes or no.
mountaineer将近 12 年前
Helpful to learn about the options, but as soon as I said it was for the client and has to be fast, there were no options remaining.
tapvt将近 12 年前
Also, Swig.<p><a href="http://paularmstrong.github.io/swig/" rel="nofollow">http://paularmstrong.github.io/swig/</a>
wasd将近 12 年前
I encourage you who have found missing frameworks to submit a pull request instead of posting a comment.
muyuu将近 12 年前
Can't un-choose. If you choose in a particular department you cannot just take the choice away and it filters by it, forcing you to reload the page.
hayksaakian将近 12 年前
No plain mustache.js<p>What kind of chooser is this?
jdkanani将近 12 年前
No option remains for Both, logic-less and fast.
path411将近 12 年前
Really surprised knockoutjs isn't mentioned. It is the default templating engine in a default .NET MVC project.
评论 #5799925 未加载
freakezoid将近 12 年前
jQote2 missing. In our benchmarks one of the fastest and a lot of features.<p><a href="http://aefxx.com/jquery-plugins/jqote2/" rel="nofollow">http://aefxx.com/jquery-plugins/jqote2/</a>
评论 #5801233 未加载
dilipray将近 12 年前
Great work.
dmix将近 12 年前
Unreadable font.