Mercurial > urweb
annotate tests/pass.ur @ 1924:b44138e6a3bf
Add activeHead tag.
activeHead is similar to active but produces xhead instead of xbody
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Fri, 06 Dec 2013 13:59:39 +0400 |
parents | 71bafe66dbe1 |
children |
rev | line source |
---|---|
adamc@155 | 1 val handler = fn r => <html><body> |
adamc@155 | 2 <li> Name: {cdata r.Nam}</li> |
adamc@155 | 3 <li> Password: {cdata r.Word}</li> |
adamc@155 | 4 </body></html> |
adamc@155 | 5 |
adamc@155 | 6 val main : unit -> page = fn () => <html><body> |
adamc@155 | 7 <lform> |
adamc@155 | 8 Name: <textbox{#Nam} /><br/> |
adamc@155 | 9 Password: <password{#Word} /><br/> |
adamc@155 | 10 |
adamc@155 | 11 <submit action={handler}/> |
adamc@155 | 12 </lform> |
adamc@155 | 13 </body></html> |