NAME

XAO::DO::Web::Header - Simple HTML header

SYNOPSIS

Currently is only useful in XAO::Web site context.

DESCRIPTION

Simple HTML header object. Accepts the following arguments, modifies them as appropriate and displays "/bits/page-header" template passing the rest of arguments unmodified.

title => 'Page title'

Passed as is.

description => 'Page description for search engines'

This is converted to <META NAME="Description" CONTENT="Page..">.

keywords => 'Page keywords for search engines'

This is converted to <META NAME="Keywords" CONTENT="Page keywords..">.

path => '/bits/alternative-template-path'

Header template path, default is "/bits/page-header".

type => 'text/csv'

Allows you to set page type to something different then default "text/html". If you set type the template would not be displayed! If you still need it - call Header again without "type" argument.

Would pass the folowing arguments to the template:

META

Keywords and description combined.

TITLE

The value of 'title' argument above.

Example:

<%Header title="Site Search" keywords="super, duper, hyper, commerce"%>

METHODS

No publicly available methods except overriden display().

EXPORTS

Nothing.

AUTHOR

Copyright (c) 2000-2001 XAO, Inc.

Andrew Maltsev <am@xao.com>.

SEE ALSO

Recommended reading: XAO::Web, XAO::DO::Web::Page.