view tests/timef.ur @ 1613:4973d31b5fff

Fix server-side urlification of custom Option types
author Adam Chlipala <adam@chlipala.net>
date Fri, 25 Nov 2011 16:30:34 -0500
parents c6cc104a47ac
children 7d459f223ac2
line wrap: on
line source
fun main () : transaction page =
    date <- source "";
    format <- source "";
    return <xml><body>
      <ctextbox source={date}/>
      <ctextbox source={format}/>
      <dyn signal={d <- signal date;
                   f <- signal format;
                   return (case read d of
                               None => <xml/>
                             | Some d => <xml>{[timef f d]}</xml>)}/>
    </body></xml>