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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why not just use ERB?

3 点作者 janus超过 13 年前

2 条评论

wmwong超过 13 年前
If we're talking about repetition, check out Slim <a href="http://slim-lang.com/" rel="nofollow">http://slim-lang.com/</a><p>It has even less repetition than Haml.
natte超过 13 年前
totally agree, haml is awesome. However there are a couple of cases where html/erb is more readable:<p>1) when working with a lot of knockout.js bindings, html attributes seem more natural when there are a lot of them 2) when working with a deeply nested DOM structure, usually such a mess is not needed, except for HTML e-mails