from Hacker News

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

by thu on 7/23/24, 4:02 PM with 8 comments

  • by gxonatano on 7/26/24, 8:16 PM

    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.
  • by type0 on 7/24/24, 12:40 AM

    similar project https://pugjs.org
  • by lsh0 on 7/24/24, 4:26 AM

  • by efilife on 7/27/24, 11:05 AM

    Hideous in my opinion. Can't see where a tag starts and ends