CGI.imageHandler.3kaya

Langue: en

Version: March 2009 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

CGI::imageHandler - Embed an image.

SYNOPSIS

HTML imageHandler( Void(a) fn, a dat, String alt, Int width=-1, Int height=-1, String attribs="" )

ARGUMENTS

fn The image generating function

dat A parameter for the image generating function

alt The alternative text for the image

width The width of the image in pixels (optional)

height The height of the image in pixels (optional, but must be specified if width is specified)

attribs Additional image attributes (e.g. "title='Graph 1' id='gr1'" ) (this value is not filtered in any way, and so user-supplied data should not be used here).

DESCRIPTION

Return the HTML to add an image to a page, where the image is generated by one of the functions in the CGI application.

AUTHORS

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

LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

Image(3kaya)