Mercurial > urweb
view tests/lessSafeFfi.ur @ 2024:6372a742ab04
Allow '+' char in blessMime
See this one [1] for an example
[1] - http://www.w3.org/TR/SVGTiny12/mimereg.html
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Thu, 05 Jun 2014 20:36:12 +0000 |
parents | 403f0cc65b9c |
children | ec2c7a22df0d |
line wrap: on
line source
ffi foo : int -> int ffi bar serverOnly benignEffectful : int -> transaction unit ffi baz : transaction int ffi bup jsFunc "jsbup" : int -> transaction unit fun other () : transaction page = (*bar 17; q <- baz;*) return <xml><body> (*{[foo 42]}, {[q]}*) <button onclick={fn _ => bup 32}/> </body></xml> fun main () = return <xml><body> <form> <submit action={other}/> </form> </body></xml>