The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IWL::Page - The root widget, containing the body and header markup.

INHERITANCE

IWL::Object -> IWL::Widget -> IWL::Page

DESCRIPTION

Page is the primary widget of IWL. It acts as a container for everything else and also contains the <head> and <body> elements.

CONSTRUCTOR

IWL::Page->new ([%ARGS])

Where %ARGS is an optional hash parameter with with key-values. simple - true if the page should be a simple document, useful for iframes

METHODS

appendMetaEquiv (EQUIV, CONTENT)

Adds a <meta> tag with the given equiv and content.

Parameters: EQUIV - the http-equiv, CONTENT - the content

appendHeader (OBJECT)

Appends the object to the head of the page

Parameters: OBJECT - IWL::Object(3pm)

prependHeader (OBJECT)

Prepends the object to the head of the page

Parameters: OBJECT - IWL::Object(3pm)

setTitle (TEXT)

Sets the title of the page

Parameters: TEXT - the title to be set

getTitle

Returns the title text of the page

setHTTPHeader (HEADER)

Sets the header of the page. The default one is: Content-type: text/html; charset=utf-8

The two final new lines are not required

Parameters: HEADER - the header string

getHTTPHeader

Returns the HTTP header

setDeclaration (DECLARATION)

Sets the document type declaration. The default one is:

  DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"

For conveniece, the following strings are automatically converted to declarations: html401, html401strict, xhtml1, xhtml1strict, xhtml11

Parameters: DECLARATION - the DOCTYPE to change to

getDeclaration

Returns the document type declaration

LICENCE AND COPYRIGHT

Copyright (c) 2006-2007 Viktor Kojouharov. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 293:

You forgot a '=back' before '=head1'