Form
The form element enables user input, and should include submit or submitlink elements to handle that user input. When pressing such a submit button/link, data binding will be performed for all inputs in the form.
form {
var name : String
var pass : Secret
label("Username:"){ input(name) }
label("Password:"){ input(pass) }
submit save() { "save" }
}
action save(){
User{
username := name
password := pass.digest()
}.save();
}
