view tests/jsparse.ur @ 1553:4105f779de7b

Even gentler handling of back-button returns to pages with stale message-passing credentials
author Adam Chlipala <adam@chlipala.net>
date Sun, 28 Aug 2011 19:32:20 -0400
parents c270fb847dc2
children
line wrap: on
line source
fun main () =
    s <- source "13";
    return <xml><body>
      <ctextbox source={s}/>
      <dyn signal={v <- signal s; return (case read v : option int of
                                              None => <xml>None</xml>
                                            | Some n => <xml>Some {[n]}</xml>)}/>
      </body></xml>