We love Kotlin, we love DSLs, and when we have to develop a web application, we naturally want to use Kotlinx.html. It proposes a nice DSL to generate HTML fragments on the server using Kotlin/JVM or the browser with Kotlin/JS.
The only problem is the development workflow. This is how we usually do:
Mockup -> designed HTML -> code
The first step is to realize some mockups of the screen.
Then our designer transforms the mockups into HTML pages with CSS (using SASS).
The final action is the conversion of these pages in kotlinx.html code.
This last operation is painful. We have to manually edit the code to convert all HTML tags and attributes into Kotlinx.html function calls, transforming the XML structure into Kotlin code.
We created the Kotlinx.html-plugin to automate this transformation. You can now use it to copy an HTML DOM tree and have the plugin to the transformation for you.
See how it works
So if you use Kotlinx.html, please try our plugin and give us feedback!