// ============================================================================ // 053 — HTML Form Handling // ============================================================================ // Forms submit to signal handlers. GET forms use query parameters. // // Serve: soma serve 053_html_form.cell // Test: open http://localhost:8080 -> fill form -> submit // // Run: soma run 053_html_form.cell greet Alice // Expect: (HTML greeting page) cell FormApp { face { signal request(method: String, path: String, body: String) -> String signal greet(name: String) -> String } // Show the form on request(method: String, path: String, body: String) { return html("
Welcome to Soma, {upper}!
Back ", "name", name, "upper", upper)) } }