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::Error -> 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

prependHeader (OBJECT)

Prepends the object to the head of the page

Parameters: OBJECT - IWL::Object

setTitle (TEXT)

Sets the title of the page

Parameters: TEXT - the title to be set

getTitle

Returns the title text of the page

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

getEnvironment

Returns the IWL::Environment object for the page

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 281:

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