view tests/onerrorJs.ur @ 1843:0da75c01a993

Make CGI programs use Status header to set HTTP status code
author Adam Chlipala <adam@chlipala.net>
date Tue, 05 Mar 2013 09:29:50 -0500
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/>