Mercurial > urweb
view tests/cookie.ur @ 911:12c77dc567a2
Fix list jsification bug; grid1 working with foreign key, but booleans not getting into database properly
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 25 Aug 2009 14:50:19 -0400 |
parents | 1626dcba13ee |
children |
line wrap: on
line source
cookie c : string fun other () = so <- getCookie c; case so of None => return <xml>No cookie</xml> | Some s => return <xml>Cookie: {[s]}</xml> structure M = struct fun aux () = setCookie c "Hi"; so <- getCookie c; case so of None => return <xml>No cookie</xml> | Some s => return <xml><body>Cookie: {[s]}<br/> <a link={other ()}>Other</a></body></xml> end fun main () : transaction page = return <xml><body> <a link={other ()}>Other</a><br/> <a link={M.aux ()}>Aux</a><br/> </body></xml>