man wml::std::page (Fonctions bibliothèques) - Standard HTML Page Header and Footer

NAME

wml::std::page - Standard HTML Page Header and Footer

SYNOPSIS

 #use wml::std::page

 <page [attributes]>
 [<page_end>]

 <head>...</head>
 <title>...</title>

DESCRIPTION

This include file provides the new CW<page> tag which is a advanced combination of the HTML CW<body> and CW<head> container tags. The idea is to provide complete header and footer tags via one single tag while providing new features like page indentation, easy title specification and setup of default values for the page colors.

ATTRIBUTES

This is a shorthand for the container tag CW<title>. The value of this attribute is placed in the CW<head> section of the page, surrounded with the CW<title> tag. This sets the indentation level of the page in units of CW<blockquote>'s. Default is no indentation. Setting CWindent to a value of N means the page is surrounded by N CW<blockquote>> tags. The attribute CWindent=1 or CWindent=2 usually provides the best readable layout. This just corresponds to the same attribute of the CW<body> tag and sets the background image. This is per default not used. This just corresponds to the same attribute of the CW<body> tag and sets the background color. Default is CWbgcolor="#ffffff" (white). This just corresponds to the same attribute of the CW<body> tag and sets the text color. Default is CWtext="#000000" (black). This just corresponds to the same attribute of the CW<body> tag and sets the normal hyperlink color. Default is CWtext="#333399" (medium blue). This just corresponds to the same attribute of the CW<body> tag and sets the color for activated hyperlinks. Default is CWtext="#9999ff" (light blue). This just corresponds to the same attribute of the CW<body> tag and sets the color for already visited hyperlinks. Default is CWtext="#000066" (dark blue). When setting CWcolor="none", the five previous attributes are not put into the CW<body> tag. This just corresponds to the same attribute of the CW<body> tag and sets a JavaScript even handler which is activated after page was loaded. This is per default not used. This automatically puts a CW<info style=meta> tag into the CW<head> section of the page. See wml::std::info(3) for more details. This enables the creating of three slices: CWWML_STDPAGE_HEAD, CWWML_STDPAGE_BODY and CWWML_STDPAGE_FOOT. These can be used later in Pass 9 (Slice) for cutting out parts of the page.

:html:ATTR=STR :body:ATTR=STR
The ``ATTR=STR'' pairs are passed along to the CW<html> and CW<body> HTML tags.

OTHER COMMANDS

This module implements two new macros, called CW<title>...CW</title> and CW<head>...CW</head>. The first one defines the title of the page, and the second appends its body into the HEAD section of the HTML documents. Its main purpose is to add meta-tags, either directly or with the help of wml::std::info(3).

AUTHOR

 Ralf S. Engelschall
 rse@engelschall.com
 www.engelschall.com

REQUIRES

 Internal: P1, P2, P5
 External: --

SEEALSO

HTML CW<head>, CW<body> and CW<title> tags; wml::std::info(3)