diff options
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 00000000..1e473482 --- /dev/null +++ b/tests/timef.ur @@ -0,0 +1,12 @@ +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> |