Mercurial > urweb
view 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 |
line wrap: on
line source
table t : { A : int } fun main () : transaction page = x <- queryX (SELECT * FROM t ORDER BY RANDOM) (fn r => <xml>{[r.T.A]}<br/></xml>); return <xml><body>{x}</body></xml>