comparison tests/timef.ur @ 1609:c6cc104a47ac

Client-side timef
author Adam Chlipala <adam@chlipala.net>
date Thu, 24 Nov 2011 11:27:51 -0500
parents
children 7d459f223ac2
comparison
equal deleted inserted replaced
1608:77180224f1f9 1609:c6cc104a47ac
1 fun main () : transaction page =
2 date <- source "";
3 format <- source "";
4 return <xml><body>
5 <ctextbox source={date}/>
6 <ctextbox source={format}/>
7 <dyn signal={d <- signal date;
8 f <- signal format;
9 return (case read d of
10 None => <xml/>
11 | Some d => <xml>{[timef f d]}</xml>)}/>
12 </body></xml>