diff options
author | 2011-12-04 14:40:12 -0500 | |
---|---|---|
committer | 2011-12-04 14:40:12 -0500 | |
commit | 64adfd7ff1361a1886d689f03b5e30780df9e691 (patch) | |
tree | 86de944318bf3610af01258c455ceacfd450c307 /tests | |
parent | 470cb13dcf7e4a40a4155ba187b25718770d9189 (diff) |
timeFormat .urp directive
Diffstat (limited to 'tests')
-rw-r--r-- | tests/showTime.ur | 8 | ||||
-rw-r--r-- | tests/showTime.urp | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/showTime.ur b/tests/showTime.ur new file mode 100644 index 00000000..e439d6a6 --- /dev/null +++ b/tests/showTime.ur @@ -0,0 +1,8 @@ +fun main () : transaction page = + tm <- now; + s <- source tm; + return <xml><body> + <b>Server:</b> {[tm]}<br/> + <b>Client:</b> <dyn signal={v <- signal s; return (txt v)}/> + <button value="Recalculate" onclick={tm <- now; set s tm}/> + </body></xml> diff --git a/tests/showTime.urp b/tests/showTime.urp new file mode 100644 index 00000000..7ef7e20b --- /dev/null +++ b/tests/showTime.urp @@ -0,0 +1,4 @@ +timeFormat %H:%M %Y +rewrite url ShowTime/* + +showTime |