IWL::Page - The root widget, containing the body and header markup.
IWL::Object -> IWL::Widget -> IWL::Page
Page is the primary widget of IWL. It acts as a container for everything else and also contains the <head> and <body> elements.
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
Adds a <meta> tag with the given equiv and content.
Parameters: EQUIV - the http-equiv, CONTENT - the content
Appends the object to the head of the page
Parameters: OBJECT - IWL::Object(3pm)
Prepends the object to the head of the page
Sets the title of the page
Parameters: TEXT - the title to be set
Returns the title text of the page
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
Returns the HTTP header
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
Returns the document type declaration
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:
You forgot a '=back' before '=head1'
To install IWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IWL
CPAN shell
perl -MCPAN -e shell install IWL
For more information on module installation, please visit the detailed CPAN module installation guide.