Menu

1 / 4

Thymeleaf, Spring MVC and htmx for Native Java Backends

DEV Community: android·Shai Almog·1 day ago
#0brJEUV5
#devtoandroid#devto#dev#workspace#request
Reading 0:00
15s threshold

Thymeleaf, Spring MVC and htmx are a combination Java developers can put to work quickly: templates for the view, controllers for the request and partial updates where they help. We now support that programming model with a different execution path: statically compiled rendering code inside a native Java backend.

What is Codename One? Codename One is an open-source framework for building native iOS, Android, desktop, and web apps from a single Java or Kotlin codebase. Learn more at codenameone.com .

The template compiler processes a supported subset of Thymeleaf syntax and emits Java renderers with direct model access. Spring MVC-style controllers choose the page or fragment. ParparVM compiles the renderers with the rest of the backend into native code. The response is still ordinary HTML that any browser can display.

This is Sunday's follow-up to Create an Uber Clone in 1 Minute .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.