widget(3)

NAME

CGI::Widget - Base class for CGI::Widget::...

SYNOPSIS

use CGI::Widget qw(:standard);
#prints 1,2,3,4,
print Series(-length=>4,-render=>sub{return shift.','});

DESCRIPTION

The CGI::Widget module's purpose is to allow authors of
CGI or other dynamically generated HTML documents an easy
way to create common, and possibly complex, page elements.

Widgets can be accessed either by explicitly creating Wid
get objects, as:
use CGI::Widget::Series;
my $series_widget = CGI::Widget::Series->new();
print $series_widget,"0;
or by using a CGI::Widget import tag, as:
use CGI::Widget qw(:standard);
print Series(),"0; #constructs CGI::Widget::Series print HList__Node,"0; #constructs CGI::Wid
get::HList::Node
you can construct CGI::Widget subclasses by name. Deeper
subclasses can be constructed by replacing double-colon
(::) with double-underscore (__).
EXPORT

A modified AUTOLOADer is exported. How the autoloader
functions depends
on what import tags with which CGI::Widget was brought
into the namespace.
The first import tag is used, while additional tags are
silently ignored.
Tag Returns
-------------------------:standard HTML
:html HTML
:wml WML
:javascript javascript

ACKNOWLEDGMENTS

Thanks to Slaven Rezic for valuable ideas.

AUTHOR

Allen Day E<allenday@ucla.edu>
Copyright (c) 2001.

SEE ALSO

Perl. CGI::Widget::Series
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout