Name : perl-HTML-Template-Extension
| |
Version : 0.26
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2023-07-20 16:34:36
|
Group : Development/Libraries/Perl
| Source RPM : perl-HTML-Template-Extension-0.26-lp155.1.1.src.rpm
|
Size : 0.07 MB
| |
Packager : https://www_suse_com/
| |
Summary : Module support extension for HTML::Template
|
Description :
This module extends HTML::Template to easily support methods and tags not implemented in parent module. Piece of code needed to add new tags syntax and new functionality are called plugins. All plugins can be dynamically loaded for supporing needed syntax and functionality. This module is a derivated class of HTML::Template base module and, like so, works exactly ad HTML::Template do. But, relative to original module, it differ from:
* * vanguard_compatibility_mode is enabled by default.
I like TMPL_* tags but there is scope where %...% costruct is very usefull for readability;
* * die_on_bad_params is disabled by default.
I don\'t like errors is i wish not to set params or if i try to set some unexistent parameters;
* * \"output\" method is oveloaded
to support an hash item \"as\" to set params directly without setting them befor using param method;
* * added a new method \"html\"
with two arguments, an hash ref for setting parameters directly and a scalar argument to set here the file name of template to use. If file name is the same of one just setting in, cache is used;
* * a costructor parameter \"plugins\" is added
relative to an array ref with all plugins module to load;
* * a \"plugin_add\" method was implemented
to add a single plugin to those already loaded. If a string is passed as plugin_add argument, then HTML::Template::Extention::*** is loaded. If a obj reference is passed, it\'s used as object Extension. The object passed must implements an init and a push_filter extension. It\'s better to wrote you own object plugin implements HTML::Template::Extension::ObjBase as parent object.
* * a \"plugins_clear\" method was added
to unload all plugins
* * added \"filename\",\"scalarref\",\"arrayref\",\"filehandle\"
methods to modify template text after class initialization.
All dynamic plugins live in the HTML::Template::Extension namespace and you can built your own extension to support you prefered tags and functionality. A plugin named DO_NOTHING is present in this package and can be use like a skeleton to built your own plugin. DO_NOTHING, as name says, add nothing to standard HTML::Template::Extension but there are other plugins just available:
* * HTML::Template::Extension::DOC
to support comment text
* * HTML::Template::Extension::SLASH_VAR
to support < TMPL_VAR>....< /TMPL_VAR> syntax
* * HTML::Template::Extension::CSTART
to select what parts of your template must be returned by \"output\" and \"html\" method
* * HTML::Template::Extension::HEAD_BODY
that don\'t add tag syntax but some method for easily working with html files
* * HTML::Template::Extension::IF_TERN
that add syntax for ternary if operator %bool_var?if_is_true:if_is_false%
* * HTML::Template::Extension::DO_NOTHING
that do nothing :-)
For more information about this plugins see relative pods file.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-H/15.5/noarch |