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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ultralight Javascript Templating

28 点作者 alake1超过 14 年前

2 条评论

superk超过 14 年前
I use this rewrite of resig's microtemplating:<p><a href="http://github.com/creationix/microtemplates" rel="nofollow">http://github.com/creationix/microtemplates</a><p>It's as versatile as I'll ever need - it evaluates any javascript between the tags. If you don't like the syntax it's really easy to change - just change the regexp on line 2. A complete templating engine in a dozen lines of code:<p><a href="http://pastebin.com/QpacVLcS" rel="nofollow">http://pastebin.com/QpacVLcS</a>
StarWars666超过 14 年前
Nice but not having loops in the templates makes for too poor a language. Still seeing it in action it looks quite fast.
评论 #1694148 未加载