I’ve got the template class from https://ktor.io/servers/features/templates/html-dsl.html. At the bottom there’s a section dedicated to template. I’m trying to follow that example. First i create a minimum bootstrap page with html-dsl and then try to break down into modular template so it can be reused.
Here’s the error from the previous code. There’s 2:
For the form, this is the furthest i go. By only guessing from the API:
body {
form {
+"Form Input: "
textInput(name = "myInput")
buttonInput(name = "submit") { print("Submit is clicked: ") }
}
}
But nothing happens when i click the button. And I don’t know how to refer to the value of myInput.
Thanks a lot for your help.