1HTML::Template::Pro(3)User Contributed Perl DocumentationHTML::Template::Pro(3)
2
3
4

NAME

6       HTML::Template::Pro - Perl/XS module to use HTML Templates from CGI
7       scripts
8

SYNOPSIS

10       It is moved out and split.
11
12       See "SYNOPSIS" in HTML::Template::SYNTAX for introduction to
13       HTML::Template and syntax of template files.
14
15       See "SYNOPSIS" in HTML::Template::PerlInterface for perl interface of
16       HTML::Template, HTML::Template::Expr and HTML::Template::Pro.
17

DESCRIPTION

19       Original HTML::Template is written by Sam Tregar, sam@tregar.com with
20       contributions of many people mentioned there.  Their efforts caused
21       HTML::Template to be mature html tempate engine which separate perl
22       code and html design.  Yet powerful, HTML::Template is slow, especially
23       if mod_perl isn't available or in case of disk usage and memory
24       limitations.
25
26       HTML::Template::Pro is a fast lightweight C/Perl+XS reimplementation of
27       HTML::Template (as of 2.9) and HTML::Template::Expr (as of 0.0.7).  It
28       is not intended to be a complete replacement, but to be a fast
29       implementation of HTML::Template if you don't need querying, the
30       extended facility of HTML::Template.  Designed for heavy upload,
31       resource limitations, abcence of mod_perl.
32
33       HTML::Template::Pro has complete support of filters and
34       HTML::Template::Expr's tag EXPR="<expression>", including user-defined
35       functions and construction <TMPL_INCLUDE EXPR="...">.
36
37       HTML::Template work cycle uses 2 steps. First, it loads and parse
38       template.  Then it accepts param() calls until you call output().
39       output() is its second phase where it produces a page from the parsed
40       tree of template, obtained in the 1st step.
41
42       HTML::Template::Pro loads, parse and outputs template on fly, when you
43       call $tmpl->output(), in one pass. The corresponding code is written in
44       C and glued to Perl using Perl+XS. As a result, comparing to
45       HTML::Template in ordinary calls, it runs 10-25 times faster. Comparing
46       to HTML::Template with all caching enabled under mod_perl, it still 1-3
47       times faster. At that HTML::Template caching requires considerable
48       amount of memory (per process, shareable, or on disk) to be permanently
49       filled with parsed trees, whereas HTML::Template::Pro don't consumes
50       memory for caches and use mmap() for reading templates on disk.
51
52       Introduction to HTML::Template and syntax of template files is
53       described in HTML::Template::SYNTAX.  Perl interface of HTML::Template
54       and HTML::Template::Pro is described in HTML::Template::PerlInterface.
55

SEE ALSO

57       HTML::Template::SYNTAX, HTML::Template::PerlInterface.
58
59       Progect page is http://html-tmpl-pro.sourceforge.net
60        (and http://sourceforge.net/projects/html-tmpl-pro)
61
62       Original modules are HTML::Template, HTML::Template::Expr.  Their
63       progect page is http://html-template.sourceforge.net
64

BUGS

66       See "BUGS" in HTML::Template::PerlInterface
67

AUTHOR

69       I. Vlasenko, <viy@altlinux.org>
70
71       with contributions of Bruni Emiliano, <info at ebruni.it> Stanislav
72       Yadykin, <tosick at altlinux.ru> Viacheslav Sheveliov <slavash at
73       aha.ru> Shigeki Morimoto <shigeki.morimoto at mixi.co.jp> Kirill
74       Rebenok <kirill at rebenok.pl>
75
77       Copyright (C) 2005-2009 by I. Yu. Vlasenko.  Pieces of code in Pro.pm
78       and documentation of HTML::Template are copyright (C) 2000-2002 Sam
79       Tregar (sam@tregar.com)
80
81       The template syntax, interface conventions and a large piece of
82       documentation of HTML::Template::Pro are based on CPAN module
83       HTML::Template by Sam Tregar, sam@tregar.com.
84
85       This library is free software; you can redistribute it and/or modify it
86       under either the LGPL2+ or under the same terms as Perl itself, either
87       Perl version 5.8.4 or, at your option, any later version of Perl 5 you
88       may have available.
89
90
91
92perl v5.28.1                      2013-05-13            HTML::Template::Pro(3)
Impressum