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

NAME

uHTML::uTags - Testing uHTML tags and functions for existence

VERSION

Version 1.0

DESCRIPTION

The library uHTML::uTags provides tags and functions to check the existence of an particular uHTML-tag or function. This library is thought mainly as a debug tool for the designer and rarely of practical use in working websites.

Requirements

The uHTML::uTags library requires the uHTML::listfuncs library and the main uHTML library.

uHTML tags provided by the uHTML::uTags library

ListTags

Overview

The ListTags tag lists all uHTML tags with associated program code.

Attributes

head="text"

The attribute head defines the text preceding the tag list.

join="text"

The attribute join defines the text between two consecutive tag names.

tail="text"

The attribute tail defines the text following the tag list.

Example

  <ListTags head="Known tags: " join=", " tail=".">

ListVars

Overview

The ListVars tag lists all known uHTML attribute variables.

Attributes

head="text"

The attribute head defines the text preceding the variables list.

join="text"

The attribute join defines the text between two consecutive variables names.

tail="text"

The attribute tail defines the text following the variables list.

Example

  <ListVars head="Known variables: " join=", " tail=".">

TestTag

Overview

The TestTag tag tests if a particular uHTML tag has program code associated with it.

Attributes

name="text"

Name of the tested tag.

msg="text"

Message displayed in case the tag name has code connected to it.

Example

  <TestTag name="if" msg="<b>if</b> is defined.">

TestVar

Overview

The TestVar tag tests if a particular uHTML attribute variable is known.

Attributes

name="text"

Name of the tested variable.

msg="text"

Message displayed in case the variable name is known.

Example

  <TestVar name="RepeatValue" msg="<b>RepeatValue</b> is defined as variable.">

Attribute variables and functions provided by the uHTML::uTags library

$ListTags(head,join,tail)

Overview

The ListTags function returns a list of all uHTML tags associated with program code.

Parameters

head

The parameter head defines the text preceding the tag list.

join

The parameter join defines the text between two consecutive tag names.

tail

The parameter tail defines the text following the tag list.

Example

  <uList elements="$ListTags('',',','')">
    ...
  </uList>

$ListVars(head,join,tail)

Overview

The ListVars function returns a list of all known uHTML attribute variables.

Parameters

head

The parameter head defines the text preceding the variables list.

join

The parameter join defines the text between two consecutive variables names.

tail

The parameter tail defines the text following the variables list.

Example

  <uList elements="$ListVars('',',','')">
    ...
  </uList>

$TestTag(name,ret)

Overview

The $TestTag function tests if a particular uHTML tag has program code associated with it.

Parameters

name

Name of the tested tag.

msg

Value returned in case the tag name has code connected to it.

Example

  <if cond="$TestTag(include,1)">Tag "include" is defined.</if>

$TestVar(name,ret)

Overview

The $TestVar function tests if a particular uHTML attribute variable is known.

Parameters

name

Name of the tested attribute variable.

ret

Value returned in case the attribute variable name is known.

Example

  <if cond="$TestVar(RepeatValue,1)">RepeatValue is defined.</if>

SEE ALSO

perl(1), uHTML, uHTML::ListFuncs, http://www.uhtml.de/en/doc/uTags.uhtml

AUTHOR

Roland Mosler (Roland.Mosler@Place.Ug)

COPYRIGHT

Copyright 2009 Roland Mosler. All rights reserved.

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