aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/appjs.ur
blob: 01e9f3454f436c8d65440ed26eb02e9cb126e2ed (plain)
1
2
3
4
5
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>