Mercurial > urweb
view tests/goback.ur @ 2204:01c8aceac480
Finishes initial prototype, caching parameterless pages with table-match-based invalidation. Still has problems parsing non-Postgres SQL dialects properly.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Tue, 27 May 2014 21:14:13 -0400 |
parents | c3b5cf5c2f98 |
children |
line wrap: on
line source
table channels : { Channel : channel {} } fun get () = ch <- channel; dml (INSERT INTO channels (Channel) VALUES ({[ch]})); return <xml><body onload={recv ch}> Hi. </body></xml> fun post () = ch <- channel; dml (INSERT INTO channels (Channel) VALUES ({[ch]})); return <xml><body onload={recv ch}> Hi! </body></xml> fun main () = return <xml><body> <li><a link={get ()}>Get</a></li> <li><form><submit action={post}/></form></li> </body></xml>