TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

39 pointsby thu10 months ago

4 comments

gxonatano10 months ago
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 months ago
similar project <a href="https:&#x2F;&#x2F;pugjs.org" rel="nofollow">https:&#x2F;&#x2F;pugjs.org</a>
评论 #41054159 未加载
评论 #41053877 未加载
评论 #41053070 未加载
lsh010 months ago
similar library: <a href="https:&#x2F;&#x2F;github.com&#x2F;weavejester&#x2F;hiccup">https:&#x2F;&#x2F;github.com&#x2F;weavejester&#x2F;hiccup</a>
efilife10 months ago
Hideous in my opinion. Can&#x27;t see where a tag starts and ends