view tests/view.ur @ 1818:e6ff36097cc4

Fixed HTTP date format and added Cache-Control to app.js
author Vladimir Shabanov <vshabanoff@gmail.com>
date Wed, 12 Sep 2012 19:49:02 +0400
parents 8688e01ae469
children
line wrap: on
line source
table t : { A : int, B : string }

view v = SELECT t.A AS X FROM t

fun main () =
    rows <- queryX (SELECT * FROM v)
            (fn r => <xml><li>{[r.V.X]}</li></xml>);
    return <xml><body>
      {rows}
    </body></xml>