wok-current view perl-template-toolkit/description.txt @ rev 25601

use gcc49-lib-base for openldap-dev
author Stanislas Leduc <shann@slitaz.org>
date Fri Sep 01 12:04:33 2023 +0000 (16 months ago)
parents
children
line source
1 The Template Toolkit is a collection of Perl modules which implement a fast,
2 flexible, powerful and extensible template processing system.
4 It is "input-agnostic" and can be used equally well for processing any kind
5 of text documents: HTML, XML, CSS, Javascript, Perl code, plain text,
6 and so on.
7 However, it is most often used for generating static and dynamic web content,
8 so that's what we'll focus on here.
10 Although the Template Toolkit is written in Perl, you don't need to be a Perl
11 programmer to use it. It was designed to allow non-programmers to easily
12 create and maintain template-based web sites without having to mess around
13 writing Perl code or going crazy with cut-n-paste.
15 However, the Template Toolkit is also designed to be extremely flexible and
16 extensible. If you are a Perl programmer, or know someone who is, then you
17 can easily hook the Template Toolkit into your existing code, data, databases
18 and web applications.
19 Furthermore, you can easily extend the Template Toolkit through the use of
20 its plugin mechanism and other developer APIs.
22 Whatever context you use it in, the primary purpose of the Template Toolkit
23 is to allow you to create a clear separation between the presentation elements
24 of your web site and everything else.
26 If you're generating static web pages, then you can use it to separate the
27 commonly repeated user interface elements on each page (headers, menus,
28 footers, etc.) from the core content.
29 If you're generating dynamic web pages for the front end of a web application,
30 then you'll also be using it to keep the back-end Perl code entirely separate
31 from the front-end HTML templates.
32 Either way, a clear separation of concerns is what allow you to concentrate
33 on one thing at a time without the other things getting in your way.
34 And that's what the Template Toolkit is all about.