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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Slab – A programmable markup language for generating HTML

39 点作者 thu10 个月前

4 条评论

gxonatano10 个月前
You don't need to make your markup language programmable. Just write a library for a full-featured programming language which outputs the markup you want. Then you don't have to re-implement parameters, variables, loops, and such. See Lucid or Blaze in Haskell for good HTML DSLs. You can do more in one of those, combined with all the features of Haskell, than you can with Slab, Haml, Pug, or whatever else. And you don't need to write plugins for VSCode, Vim, Emacs, or whatever else just to edit it. See also Elm, which has an HTML DSL built in.
评论 #41082171 未加载
评论 #41081922 未加载
type010 个月前
similar project <a href="https:&#x2F;&#x2F;pugjs.org" rel="nofollow">https:&#x2F;&#x2F;pugjs.org</a>
评论 #41054159 未加载
评论 #41053877 未加载
评论 #41053070 未加载
lsh010 个月前
similar library: <a href="https:&#x2F;&#x2F;github.com&#x2F;weavejester&#x2F;hiccup">https:&#x2F;&#x2F;github.com&#x2F;weavejester&#x2F;hiccup</a>
efilife10 个月前
Hideous in my opinion. Can&#x27;t see where a tag starts and ends