Void addHandler(String shortName, Void(a) fn, a dat, Bool prepost=true)
Arguments
shortName: The short handler namefn: The handler functiondat: Data to pass to the handler functionprepost: Whether to run thePreContentandPostContentfunctions after submitting the form. This defaults to true, but may be useful to disable if the form results are not HTML.
Usage
Register a handler to get a short URL. If the same fn, dat and prepost settings are later used by linkHandler, the long string of encrypted state information will be replaced by a short handler string.