diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2017-07-23 09:50:04 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2017-07-23 09:50:04 -0400 |
commit | 0cccdb0ae595cd7e3e136e984ac7b95b99f71a53 (patch) | |
tree | 491d3b13813610943c60460d3e178d3a73916346 /tests/timef.ur |
Import urweb_20170720+dfsg.orig.tar.gz
[dgit import orig urweb_20170720+dfsg.orig.tar.gz]
Diffstat (limited to 'tests/timef.ur')
-rw-r--r-- | tests/timef.ur | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/timef.ur b/tests/timef.ur new file mode 100644 index 0000000..6ba6ccf --- /dev/null +++ b/tests/timef.ur @@ -0,0 +1,12 @@ +fun main () : transaction page = + date <- source "2011/11/26 10:08:42"; + 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> |