Skip to Content.
Sympa Menu

Documentation for Sympa

NAME

Sympa::Template - Template parser

SYNOPSIS

use Sympa::Template;

$template = Sympa::Template->new;
$template->parse($data, $tpl_file, \$output);

DESCRIPTION

Methods

Properties

Instance of Sympa::Template may have following attributes.

Filters

These custom filters are defined by Sympa::Template. See Template::Manual::Filters about usage of filters.

Note:

Calls of “helploc”, “loc” and “locdt” in template files are extracted during packaging process and are added to translation catalog.

Plugins

Plugins may be placed under LIBDIR/Sympa/Template/Plugin. See <https://www.sympa.community/manual/customize/template-plugins.html> about usage of plugins.

SEE ALSO

Template::Manual.

HISTORY

Sympa 4.2b.3 adopted template engine based on Template Toolkit.

Plugin feature was added on Sympa 6.2.

tt2 module was renamed to Sympa::Template on Sympa 6.2.

Top of Page