Hacker GitHub

← All repos

Kotlin/kotlinx.html

View on GitHub ↗ ★ 1,754 Kotlin

Kotlin DSL for HTML

9 mentions on Hacker News by 7 people: 0 stories, 9 comments · first 2019-04-16 · latest 2026-10-12

Mentions per year 9 mentions · busiest year 2019 (3)
20082026
  1. …Claude Code seems to have not problem writing it (I barely write templates myself these days). https://github.com/kotlin/kotlinx.html https://dzone.com/articles/modern-type-safe-template-engines...
    comment by flossly · 2026-10-12 · in Type-safe HTML templating in Zig
  2. …style. Kotlin is well-suited for DSLs, especially declarative ones (see kotlinx.html[0]). [0] https://github.com/Kotlin/kotlinx.html
    comment by moritzruth · 2024-10-08 · in Show HN: Kotlin Money
  3. …HTML templating (in Elm) or Kotlinx.html[1]. Just taste i guess. Good luck with yr project! [1]: https://github.com/Kotlin/kotlinx.html
  4. …[2]: https://github.com/hasura/ra-data-hasura [3]: https://maud.lambda.xyz/ [4]: https://github.com/Kotlin/kotlinx.html [5]: https://github.com/xmlet/HtmlFlow
  5. The object syntax example looks very like what is already possible in Kotlin: https://github.com/Kotlin/kotlinx.html html { body { div { a("https://kotlinlang.org") { target = ATarget.blank +"Main site" } } } }
  6. …you can use it from pure JavaScript, which lets you replace JSX with Kotlin's DSL[1] for HTML. [1] https://github.com/Kotlin/kotlinx.html/blob/master/README.md
    comment by ptx · 2020-05-08 · in The Cost of JavaScript Frameworks
  7. …to come. This technique has been here for a while with Kotlin and its kotlinx.html library: https://github.com/Kotlin/kotlinx.html#dom I used it recently on a small project (server-side on the JVM) and might use it the client-side as well…
    comment by ptx · 2019-07-01 · in SwiftWebUI
  8. Kotlin may be a nice language but its HTML library: https://github.com/kotlin/kotlinx.html ... is an abomination.
  9. I started by checking how you can write HTML using Kotlin DSL. Here is the source code https://github.com/Kotlin/kotlinx.html Now, I have to generate different languages once the DSL is finalized. To achieve this I use Flask framework…