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
20082026
-
…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 -
…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 -
…HTML templating (in Elm) or Kotlinx.html[1]. Just taste i guess. Good luck with yr project! [1]: https://github.com/Kotlin/kotlinx.html
comment by cies · 2021-08-17 · in Show HN: Imba – I have spent 7 years creating a programming language for the web -
…[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
comment by cies · 2021-04-05 · in Ask HN: What novel tools are you using to write web sites/apps? -
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" } } } }
comment by erpellan · 2020-05-11 · in What if we'd had better HTML-in-JS syntax all along? -
…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 -
…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 -
Kotlin may be a nice language but its HTML library: https://github.com/kotlin/kotlinx.html ... is an abomination.
comment by cutler · 2019-04-22 · in Comparing JVM alternatives to JavaScript -
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…
comment by rahulrrixe · 2019-04-16 · in Ask HN: What useful internal tools or libraries have you built in your company?