PET::Filter::GenHtml

PET::Filter::GenHtml

This filter is used to generate HTML-tags and markup from various textual markups at precompile time.

For example, you can generate a HTML table out of a CSV-like descriptor.  See the “preprocess” method for available syntax.

Summary
PET::Filter::GenHtmlThis filter is used to generate HTML-tags and markup from various textual markups at precompile time.
Variables
%TAGS
Functions
preprocess ($file, $content)The general tag format looks like <!-- TABLIFY(...)
tag_TABLIFY (%p)params, content
_parseParams ($s)

Variables

%TAGS

my %TAGS

Functions

preprocess ($file, $content)

sub preprocess

The general tag format looks like <!-- TABLIFY(...)  --> ...  <!-- END -->

Tags cannot be nested!

tag_TABLIFY (%p)

sub tag_TABLIFY

params, content

Generate table.  <!-- TABLIFY(border=”0” td=”|” tr=”||”) --> ....  <!-- END -->

_parseParams ($s)

sub _parseParams
Base class for all Filter modules.
my %TAGS
sub preprocess
The general tag format looks like <!-- TABLIFY(...)
sub tag_TABLIFY
params, content
sub _parseParams
Close