annotate tests/vlad3.ur @ 1909:659d1f4e95bf

make dist: Use fewer wildcards The remaining ones only work by accident: http://www.gnu.org/software/automake/manual/html_node/Wildcards.html and they have some practical problems too (we don?t really want to distribute include/urweb/config.h or src/config.sml), but this is enough for now to pass ?make distcheck? as long as we don?t run it from a separate build directory. Signed-off-by: Anders Kaseorg <andersk@mit.edu> --- Makefile.am | 6 +++--- src/c/Makefile.am | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
author Anders Kaseorg <andersk@mit.edu>
date Fri, 22 Nov 2013 09:36:14 -0500
parents 7e3226c97678
children
rev   line source
adamc@1052 1 cookie user : {EMail : string}
adamc@1052 2
adamc@1052 3 fun main () =
adamc@1052 4 ro <- getCookie user;
adamc@1052 5 case ro of
adamc@1052 6 Some u => welcome u
adamc@1052 7 | _ => login ()
adamc@1052 8
adamc@1052 9 and welcome u = return <xml><body>
adamc@1052 10 Welcome {[u.EMail]}. <a link={logout ()}>Logout</a>
adamc@1052 11 </body></xml>
adamc@1052 12
adamc@1052 13 and logout () =
adamc@1052 14 clearCookie user;
adamc@1052 15 main ()
adamc@1052 16
adamc@1052 17 and login () = return <xml><body>
adamc@1052 18 <form>E-mail:<textbox{#EMail}/><submit action={signin}/></form>
adamc@1052 19 </body></xml>
adamc@1052 20
adamc@1052 21 and signin r =
adamc@1052 22 setCookie user {Value = {EMail = r.EMail},
adamc@1052 23 Expires = None, (* Some (readError "2012-11-6
adamc@1052 24 00:00:00"), *)
adamc@1052 25 Secure = False
adamc@1052 26 };
adamc@1052 27 main ()