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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Declarative Templates: A Better JavaScript View Layer

2 点作者 jugularkill将近 8 年前

3 条评论

Pherdnut将近 8 年前
Or just use something like twig where the whole point is to have your view data sorted BEFORE you get to templating, which IMO, is the real source of clutter. Template systems should be boring, stupid, and clean. Making all of the things JavaScript has never been necessary. Definitely better than React or most anything else that's popular though.
tchaffee将近 8 年前
&gt; It’s not only pleasantly readable<p>I find JSX to be more readable. &quot;Tags as first class functions&quot; means I have to parse the functions into HTML as an extra mental step when trying to understand the structure and elements that make up the view.
评论 #14385669 未加载
ChicagoDave将近 8 年前
I love it. Please build this so I can use it immediately.
评论 #14389301 未加载