diff options
author | Artyom Shalkhakov <artyom.shalkhakov@gmail.com> | 2018-05-08 17:25:29 +0600 |
---|---|---|
committer | Artyom Shalkhakov <artyom.shalkhakov@gmail.com> | 2018-05-08 17:25:29 +0600 |
commit | 1078553f5a8de2a5e85dbd49058370afeefa68c7 (patch) | |
tree | 5ad865ff4d91578fa2923930a83b6ffd003d3fd4 /tests/jsbspace.ur | |
parent | c293746d4c34ccb7abb8af41f7d05940aa7e4076 (diff) |
Adding jsbspace for #121.
Diffstat (limited to 'tests/jsbspace.ur')
-rw-r--r-- | tests/jsbspace.ur | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/jsbspace.ur b/tests/jsbspace.ur new file mode 100644 index 00000000..bf4b824f --- /dev/null +++ b/tests/jsbspace.ur @@ -0,0 +1,12 @@ +fun main () : transaction page = +let + fun onclick (): transaction unit = + (* this function runs on the client *) + alert "Some \btext" +in +return <xml> + <body> + <button onclick={fn _ => onclick()}>Click me!</button> + </body> +</xml> +end
\ No newline at end of file |