summaryrefslogtreecommitdiff
path: root/demo/roundTrip.ur
diff options
context:
space:
mode:
Diffstat (limited to 'demo/roundTrip.ur')
-rw-r--r--demo/roundTrip.ur6
1 files changed, 5 insertions, 1 deletions
diff --git a/demo/roundTrip.ur b/demo/roundTrip.ur
index a0d29bf6..c3a111b7 100644
--- a/demo/roundTrip.ur
+++ b/demo/roundTrip.ur
@@ -6,7 +6,7 @@ fun writeBack v =
r <- oneRow (SELECT channels.Channel FROM channels WHERE channels.Client = {[me]});
send r.Channels.Channel v
-fun main () =
+fun action () =
me <- self;
ch <- channel;
dml (INSERT INTO channels (Client, Channel) VALUES ({[me]}, {[ch]}));
@@ -28,3 +28,7 @@ fun main () =
<dyn signal={Buffer.render buf}/>
</body></xml>
end
+
+fun main () = return <xml><body>
+ <form><submit value="Begin demo" action={action}/></form>
+</body></xml>