DEV Community 👩‍💻👨‍💻

DEV Community 👩‍💻👨‍💻 is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in

Discussion on: Render static site from Scala code

scheidig profile image
Albrecht Scheidig

Not sure :-)
What we implemented was server-side, too. Groovy is a JVM language like Scala is, and it also supports traits etc. And you can implement your own DSLs, supporting syntax similar to yours:

div(class: "xyz") {
  span("Text goes here")

But we used it inside our web application server to create dynamic content, thus accessing context.

And I guess your approach would also be capable to support dynamic content.

Thread Thread
sake_92 profile image
Sakib Hadžiavdić Author

Oh, I see now. I forgot to mention here that I'm using Scalatags library (not mine)... Similar stuff to yours. Keep hacking! :D