The flaw of the traditional html template engine is the absence of type-safe and compile-time checking. Some gurus suggested that Kotlinx.html might greatly compensate the flaw of traditional html template engine.
So I plan to make use of Spring in Java without the html template engine, say without SpringResourceTemplateResolver
nor SpringTemplateEngine
, instead inject the kotlin code with kotlinx.html. But currently I've go clue at all how to proceed
Right now I'm just returning a string with the kotlin html dsl as the return statement and the
@ResponseBody
annotation on the controller method.where
myKotlinHtmlView()
is the function where the template is