view tests/subform.ur @ 1908:ab1a3737b306

make clean: Clean bin/mlton, src/urweb.mlton.lex, src/urweb.mlton.grm Signed-off-by: Anders Kaseorg <andersk@mit.edu> --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
author Anders Kaseorg <andersk@mit.edu>
date Fri, 22 Nov 2013 09:36:14 -0500
parents 8ce31c052dce
children
line wrap: on
line source
fun handler r = return <xml><body>
  {[r.A]}, {[r.Sub.A]}, {[r.Sub.B]}, {[r.Sub.Sub]}, {[r.C]}
</body></xml>

fun main () = return <xml><body>
  <form>
    <textbox{#A}/><br/>
    <subform{#Sub}>
      <textbox{#A}/><br/>
      <textbox{#B}/><br/>
      <textbox{#Sub}/><br/>
    </subform>
    <textbox{#C}/><br/>
    <submit action={handler}/>
  </form>
</body></xml>