Name : perl-TemplateRex
| |
Version : 2.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-03 19:06:45
|
Group : Development/Libraries/Perl
| Source RPM : perl-TemplateRex-2.0-lp156.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Template toolkit that partitions code from text and uses nestable sections
|
Description :
The objective of TemplateRex is to achieve complete separation between code and presentation. While this module was developed with html generation in mind it works equally well with any text based files (such as gnuplot scripts).
Most CGI web based application start off with placing all the html text within print statements in the code or generate html via functions such as with CGI.pm. For applications of any size or sophistication this approach quickly develops maintenance issues such as
* * Code becomes bloated with embedded html.
* * Cannot leaverage the use of wysiwyg html generators (Dreamweaver, Frontpage).
* * The html is within the domain of the code programmer and not the html designers.
Templates solve this problem by outsourcing the presentation or html outside the code. The next step of evolution is then to place code within the html (asp, php, jsp) to handle things like generating rows of a table or repeated sections or chunks of html. The problem with appoach are
* * HTML becomes bloated with embedded code
* * If you are using several \'skins\' or templates sets for a different look-and-feel for an application, pieces of code tend to be replicated in different templates sets.
* * Cannot leaverage the use of wysiwyg html generators (Dreamweaver, Frontpage).
* * Security issues with templates being able to execute code. That is you need to be able to \'trust\' your template designers.
It is the opinion of the author that both extremes present their own sets of problems and that partitioning of code from presentation into their own separate realms is the best approach for long term maintenance of large and/or sophisticated web applications.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.6/noarch |