Mercurial > urweb
view tests/parseInt.ur @ 1999:a1d3fbdcc897
Add <pre> tag support
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Mon, 24 Feb 2014 09:10:31 +0000 |
parents | 4798ad652c94 |
children |
line wrap: on
line source
fun main () : transaction page = s <- source ""; return <xml><body> <ctextbox source={s}/> <button onclick={n <- get s; case read n of None => alert "Invalid" | Some n => alert (show (n + 1))}/> </body></xml>