view tests/onerrorJs.ur @ 2175:3ffef52d549c

Make urweb-mode inherit from prog-mode (contributed by Ziv Scully)
author Adam Chlipala <adam@chlipala.net>
date Thu, 15 Oct 2015 07:52:37 -0400
parents 27e731a65934
children
line wrap: on
line source
fun main n =
  case n of
      0 => error <xml>Zero is bad! <button value="Capische?" onclick={alert "GOOD!"}/></xml>
    | _ => return <xml/>