Philipp Mayer
08/24/2020, 6:23 AM@RestController
class IndexController {
@GetMapping("/html")
fun index(): String = buildString {
appendHTML().html {
head {
link(rel = "stylesheet", href = "/static/styles.css", type = "text/css" )
}
I just want to serve some static html, garnished with a little bit of css and htmx.org.
What would be the proper way to achieve that?
Currently, I don't really want to breach the whole door with adding react to it.
Thanks in advance!appendHTML().html {
head {
styleLink("<https://cdnjs.cloudflare.com/example.css>")
}