summaryrefslogtreecommitdiff
path: root/tests/showTime.ur
blob: e439d6a64e044082f14e6e5340b56c6741b77f87 (plain)
1
2
3
4
5
6
7
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>