diff tests/csdebug.ur @ 1625:bd34a4af516a

Change client-side debug to use console.debug
author Adam Chlipala <adam@chlipala.net>
date Sat, 03 Dec 2011 16:25:09 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/csdebug.ur	Sat Dec 03 16:25:09 2011 -0500
@@ -0,0 +1,5 @@
+fun main () : transaction page =
+    n <- source 0;
+    return <xml><body>
+      <button onclick={n' <- get n; set n (n' + 1); debug ("Message: " ^ show n')}/>
+    </body></xml>