annotate tests/random.ur @ 1924:b44138e6a3bf

Add activeHead tag. activeHead is similar to active but produces xhead instead of xbody
author Sergey Mironov <grrwlf@gmail.com>
date Fri, 06 Dec 2013 13:59:39 +0400
parents ac141fbb313a
children
rev   line source
adam@1682 1 table t : { A : int }
adam@1682 2
adam@1682 3 fun main () : transaction page =
adam@1682 4 x <- queryX (SELECT *
adam@1682 5 FROM t
adam@1682 6 ORDER BY RANDOM)
adam@1682 7 (fn r => <xml>{[r.T.A]}<br/></xml>);
adam@1682 8 return <xml><body>{x}</body></xml>