Name : perl-Text-TagTemplate
| |
Version : 1.83
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.6.1
| Date : 2023-01-27 18:14:24
|
Group : Development/Libraries/Perl
| Source RPM : perl-Text-TagTemplate-1.83-lp154.6.1.src.rpm
|
Size : 0.09 MB
| |
Packager : https://www_suse_com/
| |
Summary : Text::TagTemplate Perl module
|
Description :
This module is designed to make the process of constructing web-based applications (such as CGI programs and Apache::Registry scripts) much easier, by separating the logic and application development from the HTML coding, and allowing ongoing changes to the HTML without requiring non-programmers to modify HTML embedded deep inside Perl code.
This module provides a mechanism for including special HTML-like tags in a file (or scalar) and replacing those tags at run-time with dynamically generated content. For example the special tag < #USERINFO FIELD=\"favorite_color\">
might be replaced by \"green\" after doing a database lookup. Usually each special tag will have its own subroutine which is executed every time the tag is seen.
Each subroutine can be basically anything you might want to do in Perl including database lookups or whatever. You simply create subroutines to return whatever is appropriate for replacing each special tag you create.
Attributes in the special tags (such as the FIELD=\"favorite_color\" in the example above) are passed to the matching subroutine.
It is not web-specific, though, despite the definite bias that way, and the template-parsing can just as easily be used on any other text documents. The examples here will assume that you are using it for convential CGI applications.
It provides functions for parsing strings, and constructing lists of repeated elements (as in the output of a search engine).
It is object-oriented, but -- like the CGI module -- it does not require the programmer to use an OO interface. You can just import the ``:standard\'\' set of methods and use them with no object reference, and it will create and use an internal object automatically. This is the recommended method of using it unless you either need multiple template objects, or you are concerned about namespace pollution.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |