1CGI.addHandler(3kaya)        Kaya module reference       CGI.addHandler(3kaya)
2
3
4

NAME

6       CGI::addHandler - Register a handler to get a short URL
7

SYNOPSIS

9       Void addHandler( String shortName, Void(a) fn, a dat, Bool prepost=true
10       )
11

ARGUMENTS

13       shortName The short handler name
14
15       fn The handler function
16
17       dat Data to pass to the handler function
18
19       prepost Whether to run the PreContent and PostContent  functions  after
20       submitting  the  form. This defaults to true, but may be useful to dis‐
21       able if the form results are not HTML.
22

DESCRIPTION

24       Register a handler to get a short URL. If the same fn , dat and prepost
25       settings are later used by CGI.linkHandler (3kaya) , the long string of
26       encrypted state information will be replaced by a short handler string.
27

AUTHORS

29       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
30       (kaya@kayalang.org). For further information see http://kayalang.org/
31

LICENSE

33       The  Kaya  standard  library  is free software; you can redistribute it
34       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
35       License  (version  2.1  or  any later version) as published by the Free
36       Software Foundation.
37
38
39
40Kaya                             December 2010           CGI.addHandler(3kaya)
Impressum