3 ms·
Part of a long line of similar projects: XHP, Pyxl, JSX. My own project Scalatags is pretty popular in the Scala community. The approach works surprisingly wel
by lihaoyi 3y ago
Part of a long line of similar projects: XHP, Pyxl, JSX. My own project Scalatags is pretty popular in the Scala community.
The approach works surprisingly well, both server side and running in the browser (JSX, or Scalatags+Scala.js). There are plenty of websites that don't need heavy client-side interactivity where server side templating + a sprinkling of client side logic works just fine. This is especially true if you can share code between client and server (e.g. via JSX/React or Scalatags/Scala.js)
You get typechecking, interop with normal code, and a high performance runtime for free. That's a lot to like!
- SureshG 3y agoFor java/Kotlin, we are using JTE (https://jte.gg/#getting-started https://jte.gg/#getting-started), pretty nice build tooling and IDE support to generate pre-compiled templates without additional code generation steps.
- nprateem 3y agoJTE was a like refinding sanity after thinking I'd be stuck with Thymeleaf when I started playing with Spring Boot.