view tests/appjs.ur @ 1833:be0c4e2e488a

Allow any FFI module to declare new HTML tags
author Adam Chlipala <adam@chlipala.net>
date Wed, 28 Nov 2012 16:56:45 -0500
parents dc4c61363d0a
children
line wrap: on
line source
fun id n = if n = 0 then 0 else 1 + id (n - 1)

fun main () : transaction page = return <xml><body>
  <button onclick={alert (show (id 3))}/>
</body></xml>