template plugin mp3 tag
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 3544
Template::Plugin::MP3::Tag 0.01
Template::Plugin::MP3::Tag is a Perl interface to the MP3::Tag Module. more>>
Template::Plugin::MP3::Tag is a Perl interface to the MP3::Tag Module.
SYNOPSIS
[% USE tag = MP3("path_to_mp3_file") %]
[% tag.title %]
[% tag.album %]
# perldoc MP3::Tag for more ideas
Template::Plugin::MP3::Tag provides a simple wrapper for using MP3::Tag in object oriented mode; see MP3::Tag for more details.
Although Template::Plugin::MP3 can fetch MP3 files, but it Supports only ID3v1. When you have to fetch MP3 files ID3v2, I recommend you to use this module.
<<lessSYNOPSIS
[% USE tag = MP3("path_to_mp3_file") %]
[% tag.title %]
[% tag.album %]
# perldoc MP3::Tag for more ideas
Template::Plugin::MP3::Tag provides a simple wrapper for using MP3::Tag in object oriented mode; see MP3::Tag for more details.
Although Template::Plugin::MP3 can fetch MP3 files, but it Supports only ID3v1. When you have to fetch MP3 files ID3v2, I recommend you to use this module.
Download (0.004MB)
Added: 2006-11-08 License: Perl Artistic License Price:
1082 downloads
Template::Plugin::MP3 1.02
Template::Plugin::MP3 is a Perl interface to the MP3::Info Module. more>>
Template::Plugin::MP3 is a Perl interface to the MP3::Info Module.
SYNOPSIS
[% USE mp3 = MP3("Montana.mp3") %]
[% mp3.title %]
[% mp3.album %]
# perldoc MP3::Info for more ideas
Template::Plugin::MP3 provides a simple wrapper for using MP3::Info in object oriented mode; see MP3::Info for more details.
<<lessSYNOPSIS
[% USE mp3 = MP3("Montana.mp3") %]
[% mp3.title %]
[% mp3.album %]
# perldoc MP3::Info for more ideas
Template::Plugin::MP3 provides a simple wrapper for using MP3::Info in object oriented mode; see MP3::Info for more details.
Download (0.018MB)
Added: 2006-11-08 License: Perl Artistic License Price:
1087 downloads
Template::Plugins 2.19
Template::Plugins is a Perl module with plugin provider module. more>>
Template::Plugins is a Perl module with plugin provider.
SYNOPSIS
use Template::Plugins;
$plugin_provider = Template::Plugins->new(%options);
($plugin, $error) = $plugin_provider->fetch($name, @args);
The Template::Plugins module defines a provider class which can be used to load and instantiate Template Toolkit plugin modules.
<<lessSYNOPSIS
use Template::Plugins;
$plugin_provider = Template::Plugins->new(%options);
($plugin, $error) = $plugin_provider->fetch($name, @args);
The Template::Plugins module defines a provider class which can be used to load and instantiate Template Toolkit plugin modules.
Download (0.76MB)
Added: 2007-08-08 License: Perl Artistic License Price:
807 downloads
Template::Plugin::XML 2.16
Template::Plugin::XML is a XML plugin for the Template Toolkit. more>>
Template::Plugin::XML is a XML plugin for the Template Toolkit.
SYNOPSIS
[% USE XML;
dom = XML.dom(foo.xml);
xpath = XML.xpath(bar.xml);
simple = XML.simple(baz.xml);
rss = XML.simple(news.rdf);
%]
[% USE XML(file=foo.xml);
dom = XML.dom
xpath = XML.xpath
# ...etc...
%]
[% USE XML(dir=/path/to/xml);
file = XML.file(foo.xml );
dom = file.dom
xpath = file.xpath
# ...etc...
%]
The Template-XML distribution provides a number of Template Toolkit plugin modules for working with XML.
The Template::Plugin::XML module is a front-end to the various other XML plugin modules. Through this you can access XML files and directories of XML files via the Template::Plugin::XML::File and Template::Plugin::XML::Directory modules (which subclass from the Template::Plugin::File and Template::Plugin::Directory modules respectively). You can then create a Document Object Model (DOM) from an XML file (Template::Plugin::XML::DOM), examine it using XPath queries (Template::Plugin::XML::XPath), turn it into a Perl data structure (Template::Plugin::XML::Simple) or parse it as an RSS (RDF Site Summary) file.
The basic XML plugins were distributed as part of the Template Toolkit until version 2.15 released in May 2006. At this time they were extracted into this separate Template-XML distribution and an alpha version of this Template::Plugin::XML front-end module was added.
The Template::Plugin::XML module is still in development and not guaranteed to work correctly yet. However, all the other XML plugins are more-or-less exactly as they were in TT version 2.14 and should work as normal.
For general information on the Template Toolkit see the documentation for the Template module or http://template-toolkit.org. For information on using plugins, see Template::Plugins and "USE" in Template::Manual::Directives. For further information on XML, see http://xml.com/.
<<lessSYNOPSIS
[% USE XML;
dom = XML.dom(foo.xml);
xpath = XML.xpath(bar.xml);
simple = XML.simple(baz.xml);
rss = XML.simple(news.rdf);
%]
[% USE XML(file=foo.xml);
dom = XML.dom
xpath = XML.xpath
# ...etc...
%]
[% USE XML(dir=/path/to/xml);
file = XML.file(foo.xml );
dom = file.dom
xpath = file.xpath
# ...etc...
%]
The Template-XML distribution provides a number of Template Toolkit plugin modules for working with XML.
The Template::Plugin::XML module is a front-end to the various other XML plugin modules. Through this you can access XML files and directories of XML files via the Template::Plugin::XML::File and Template::Plugin::XML::Directory modules (which subclass from the Template::Plugin::File and Template::Plugin::Directory modules respectively). You can then create a Document Object Model (DOM) from an XML file (Template::Plugin::XML::DOM), examine it using XPath queries (Template::Plugin::XML::XPath), turn it into a Perl data structure (Template::Plugin::XML::Simple) or parse it as an RSS (RDF Site Summary) file.
The basic XML plugins were distributed as part of the Template Toolkit until version 2.15 released in May 2006. At this time they were extracted into this separate Template-XML distribution and an alpha version of this Template::Plugin::XML front-end module was added.
The Template::Plugin::XML module is still in development and not guaranteed to work correctly yet. However, all the other XML plugins are more-or-less exactly as they were in TT version 2.14 and should work as normal.
For general information on the Template Toolkit see the documentation for the Template module or http://template-toolkit.org. For information on using plugins, see Template::Plugins and "USE" in Template::Manual::Directives. For further information on XML, see http://xml.com/.
Download (0.026MB)
Added: 2006-09-09 License: Perl Artistic License Price:
1141 downloads
Template::Plugin::SumOf 0.01
Template::Plugin::SumOf is a Perl module to calculate the sum with VMETHODS. more>>
Template::Plugin::SumOf is a Perl module to calculate the sum with VMETHODS.
SYNOPSIS
# in your script
use Template;
use Template::Plugin::SumOf;
my $tt = Template->new;
$tt->process(
template.html,
{
ary => [
{ date => 2006-09-13, price => 300 },
{ date => 2006-09-14, price => 500 }
]
}
)
or die $tt->error;
# in your template.
[% USE SumOf -%]
[%- FOR elem IN objects -%]
[% elem.date %],[% elem.price %]
[% END -%]
,[% objects.sum_of(price) %]
# result.
2006-09-13,300
2006-09-14,500
,800
You can easy to calcurate sum of array, with VMETHODS.
<<lessSYNOPSIS
# in your script
use Template;
use Template::Plugin::SumOf;
my $tt = Template->new;
$tt->process(
template.html,
{
ary => [
{ date => 2006-09-13, price => 300 },
{ date => 2006-09-14, price => 500 }
]
}
)
or die $tt->error;
# in your template.
[% USE SumOf -%]
[%- FOR elem IN objects -%]
[% elem.date %],[% elem.price %]
[% END -%]
,[% objects.sum_of(price) %]
# result.
2006-09-13,300
2006-09-14,500
,800
You can easy to calcurate sum of array, with VMETHODS.
Download (0.004MB)
Added: 2007-01-25 License: Perl Artistic License Price:
1002 downloads
Template::Plugin::SSI 0.11
Template::Plugin::SSI is a plugin to use SSI in Template Toolkit (wrapper for CGI::SSI). more>>
Template::Plugin::SSI is a plugin to use SSI in Template Toolkit (wrapper for CGI::SSI).
SYNOPSIS
[% USE SSI %]
# virtual include of the file /foo/bar.inc.html
[% SSI.include(virtual, /foo/bar.inc.html) %]
# file include of the file /foo/bar.inc.html
[% SSI.include(file, /var/www/html/foo/bar.inc.html) %]
# execute a command
[% SSI.exec(cmd, ls) %]
# execute a cgi script
[% SSI.exec(cgi, /cgi-bin/foo.cgi) %]
# set a config variable (sizefmt, timefmt, or errmsg)
[% SSI.config(timefmt, "%Y") %]
# echo a set or environment variable
# Environment Variable Examples:
# DOCUMENT_URI - the URI of this document
# DOCUMENT_NAME - the name of the current document
# DATE_GMT - the same as gmtime
# DATE_LOCAL - the same as localtime
# FLASTMOD - the last time this script was modified
[% SSI.echo(DATE_LOCAL) %]
# set a local variable ($name = Corey)
[% SSI.set(name, Corey) %]
# print when index.html was last modified
[% SSI.flastmod(file, index.html) %]
# print the file size of index.html
[% SSI.fsize(file, index.html) %]
A Template Toolkit Plugin that provides an easy way to include Apaches SSI within a template. (acts as a wrapper to CGI::SSI)
The plugin can be loaded via the familiar USE directive.
[% USE SSI %]
This creates a plugin object with the name of SSI.
<<lessSYNOPSIS
[% USE SSI %]
# virtual include of the file /foo/bar.inc.html
[% SSI.include(virtual, /foo/bar.inc.html) %]
# file include of the file /foo/bar.inc.html
[% SSI.include(file, /var/www/html/foo/bar.inc.html) %]
# execute a command
[% SSI.exec(cmd, ls) %]
# execute a cgi script
[% SSI.exec(cgi, /cgi-bin/foo.cgi) %]
# set a config variable (sizefmt, timefmt, or errmsg)
[% SSI.config(timefmt, "%Y") %]
# echo a set or environment variable
# Environment Variable Examples:
# DOCUMENT_URI - the URI of this document
# DOCUMENT_NAME - the name of the current document
# DATE_GMT - the same as gmtime
# DATE_LOCAL - the same as localtime
# FLASTMOD - the last time this script was modified
[% SSI.echo(DATE_LOCAL) %]
# set a local variable ($name = Corey)
[% SSI.set(name, Corey) %]
# print when index.html was last modified
[% SSI.flastmod(file, index.html) %]
# print the file size of index.html
[% SSI.fsize(file, index.html) %]
A Template Toolkit Plugin that provides an easy way to include Apaches SSI within a template. (acts as a wrapper to CGI::SSI)
The plugin can be loaded via the familiar USE directive.
[% USE SSI %]
This creates a plugin object with the name of SSI.
Download (0.003MB)
Added: 2007-04-04 License: GPL (GNU General Public License) Price:
934 downloads
Template::Plugin::Java 0.4
Template::Plugin::Java is a Perl module that can generate Java Classes from XML description files and templates. more>>
Template::Plugin::Java is a Perl module that can generate Java Classes from XML description files and templates.
SYNOPSIS
From an xml file such as:
< aBean >
< java: option1="value1" >
< option2 >value2< /option2 >
< /java: >
< foo >10< /foo >
< bar >String< /bar >
< container >
< baz >20< /baz >
< /container >
< /aBean >
Through the program "tjava":
tjava [options] [file.xml ...]
Via a template, such as:
[% USE Java %]
package $package;
public class $class {
[% FOREACH Java.variables %]
$type $name = $initializer;
[% END %]
//... etc
}
To generated Java source code in the appropriate directory as determined by the package of the .xml files directory, specified package option if any, and CLASSPATH.
OPTIONS
Any options may be given besides those listed, these are passed directly to the Templates being processed in the stash (the variable table at time of processing). They can be given in the < java: > ... < /java: > section of an XML file (in which case, dont use the -- dashes) as attributes or elements, or on the command line.
--template
Name of the template to process. No extension is assumed by default unlike in the previous version.
--package
Destination package to put the generated classes, otherwise will be determined from how the current directory relates to the CLASSPATH.
--class
Class name to use, otherwise will infer from the root tag of the XML file.
--templatePath
Colon separated path where the templates can be found, overrides the environment variable TEMPLATEPATH. This doesnt work right now, so use the TEMPLATEPATH environment variable.
--genContainers
If set to 0, classes for subcontainers will not be generated. This is generally not useful.
--containerTemplate
By default set to Container, this is the default template, as well as the template used for sub-containers.
--containerNamePrefix
By default, if generating class Foo that needs to have a sub container wrapped in tag < bar >, its name will be FooBar. This is safe and wont cause collisions with different classes having sub containers of the same name (until some sort of dependency checking code is introduced). To turn this off, set it to the empty string "".
--interface
Interface to add to list of implemented interfaces, can be supplied multiple times. Make sure you append any necessary code to implement any of these interfaces.
--append
Text to insert in the generated class body.
--appendFile
Will insert text read from the file specified into the generated class body. This option and the --append option are mutually exclusive.
--file[s]
The XML file(s) to parse. This is useful for when the Plugin is instantiated from a custom script, not via tjava or inside a template.
Any other option will be placed into the stash for the templates to use, making tjava very useful with your custom templates.
Anything thats not an option will be assumed to be a file.
<<lessSYNOPSIS
From an xml file such as:
< aBean >
< java: option1="value1" >
< option2 >value2< /option2 >
< /java: >
< foo >10< /foo >
< bar >String< /bar >
< container >
< baz >20< /baz >
< /container >
< /aBean >
Through the program "tjava":
tjava [options] [file.xml ...]
Via a template, such as:
[% USE Java %]
package $package;
public class $class {
[% FOREACH Java.variables %]
$type $name = $initializer;
[% END %]
//... etc
}
To generated Java source code in the appropriate directory as determined by the package of the .xml files directory, specified package option if any, and CLASSPATH.
OPTIONS
Any options may be given besides those listed, these are passed directly to the Templates being processed in the stash (the variable table at time of processing). They can be given in the < java: > ... < /java: > section of an XML file (in which case, dont use the -- dashes) as attributes or elements, or on the command line.
--template
Name of the template to process. No extension is assumed by default unlike in the previous version.
--package
Destination package to put the generated classes, otherwise will be determined from how the current directory relates to the CLASSPATH.
--class
Class name to use, otherwise will infer from the root tag of the XML file.
--templatePath
Colon separated path where the templates can be found, overrides the environment variable TEMPLATEPATH. This doesnt work right now, so use the TEMPLATEPATH environment variable.
--genContainers
If set to 0, classes for subcontainers will not be generated. This is generally not useful.
--containerTemplate
By default set to Container, this is the default template, as well as the template used for sub-containers.
--containerNamePrefix
By default, if generating class Foo that needs to have a sub container wrapped in tag < bar >, its name will be FooBar. This is safe and wont cause collisions with different classes having sub containers of the same name (until some sort of dependency checking code is introduced). To turn this off, set it to the empty string "".
--interface
Interface to add to list of implemented interfaces, can be supplied multiple times. Make sure you append any necessary code to implement any of these interfaces.
--append
Text to insert in the generated class body.
--appendFile
Will insert text read from the file specified into the generated class body. This option and the --append option are mutually exclusive.
--file[s]
The XML file(s) to parse. This is useful for when the Plugin is instantiated from a custom script, not via tjava or inside a template.
Any other option will be placed into the stash for the templates to use, making tjava very useful with your custom templates.
Anything thats not an option will be assumed to be a file.
Download (0.018MB)
Added: 2007-06-01 License: Perl Artistic License Price:
877 downloads
Template::Plugin::Pagination 0.90
Template::Plugin::Pagination is a plugin to help paginate pages of results. more>>
Template::Plugin::Pagination is a plugin to help paginate pages of results.
SYNOPSIS
[% USE page = Pagination(items, current_page, entries_per_page) %]
[% FOREACH item IN page.page_data; ...; DONE %]
First page: [% page.first_page %]
Prev page: [% page.previous_page %]
Next page: [% page.next_page %]
Last page: [% page.last_page %]
This plugin helps you construct pages that include subsets of data from a list, such as search results which youll paginated in groups of 10.
Its based heavily on Template::Plugin::Page, which you should see for a detailed example of to use this. (That module is a thin wrapper around Data::Page, whereas this one is a wrapper around Data::Paginated, which is Data::Page + Data::Pageset + some extras).
<<lessSYNOPSIS
[% USE page = Pagination(items, current_page, entries_per_page) %]
[% FOREACH item IN page.page_data; ...; DONE %]
First page: [% page.first_page %]
Prev page: [% page.previous_page %]
Next page: [% page.next_page %]
Last page: [% page.last_page %]
This plugin helps you construct pages that include subsets of data from a list, such as search results which youll paginated in groups of 10.
Its based heavily on Template::Plugin::Page, which you should see for a detailed example of to use this. (That module is a thin wrapper around Data::Page, whereas this one is a wrapper around Data::Paginated, which is Data::Page + Data::Pageset + some extras).
Download (0.003MB)
Added: 2006-11-01 License: Perl Artistic License Price:
1089 downloads
Template::Plugin::XML::Simple 2.16
Template::Plugin::XML::Simple is a plugin interface to XML::Simple. more>>
Template::Plugin::XML::Simple is a plugin interface to XML::Simple.
SYNOPSIS
# load plugin and specify XML file to parse
[% USE xml = XML.Simple(xml_file_or_text) %]
This is a Template Toolkit plugin interfacing to the XML::Simple module.
<<lessSYNOPSIS
# load plugin and specify XML file to parse
[% USE xml = XML.Simple(xml_file_or_text) %]
This is a Template Toolkit plugin interfacing to the XML::Simple module.
Download (0.026MB)
Added: 2006-09-08 License: Perl Artistic License Price:
1142 downloads
Template::Plugin::JSON 0.02
Template::Plugin::JSON is a Perl module that adds a .json vmethod for all TT values. more>>
Template::Plugin::JSON is a Perl module that adds a .json vmethod for all TT values.
SYNOPSIS
[% USE JSON %];
< script type="text/javascript" >
var foo = [% foo.json %];
< /script >
This plugin provides a .json vmethod to all value types when loaded.
With no argument it will try to load JSON::Syck and then JSON::Converter. If used as [% USE JSON("Syck") %] or [% USE JSON("Converter") %] it will load that specific plugin.
If no plugin could be loaded an exception is thrown. Check for errors from "process" in Template.
<<lessSYNOPSIS
[% USE JSON %];
< script type="text/javascript" >
var foo = [% foo.json %];
< /script >
This plugin provides a .json vmethod to all value types when loaded.
With no argument it will try to load JSON::Syck and then JSON::Converter. If used as [% USE JSON("Syck") %] or [% USE JSON("Converter") %] it will load that specific plugin.
If no plugin could be loaded an exception is thrown. Check for errors from "process" in Template.
Download (0.004MB)
Added: 2007-02-19 License: Perl Artistic License Price:
977 downloads
Template::Plugin::Datum 0.02
Template::Plugin::Datum is a Perl module with TT2 plugin that converts international date format to German date format. more>>
Template::Plugin::Datum is a Perl module with TT2 plugin that converts international date format to German date format.
SYNOPSIS
[% USE Datum %]
von: [% 20030101 | datum %] -> 01.01.2003
bis: [% 2003-12-31 | datum %] -> 31.12.2003
Zeitstempel: [% 20031212143000 | datum %] -> 12.12.2003 14:30:00
This plugin converts international date format (year-month-day) to German date format (day.month.year).
Recognized formats are:
yyyy-mm-dd (2003-12-31)
yyyymmdd (20031231)
yyyymmddHHMMSS (20031231143000) date and time
<<lessSYNOPSIS
[% USE Datum %]
von: [% 20030101 | datum %] -> 01.01.2003
bis: [% 2003-12-31 | datum %] -> 31.12.2003
Zeitstempel: [% 20031212143000 | datum %] -> 12.12.2003 14:30:00
This plugin converts international date format (year-month-day) to German date format (day.month.year).
Recognized formats are:
yyyy-mm-dd (2003-12-31)
yyyymmdd (20031231)
yyyymmddHHMMSS (20031231143000) date and time
Download (0.002MB)
Added: 2006-09-20 License: Perl Artistic License Price:
1129 downloads
Template::Plugin::XML::DOM 2.16
Template::Plugin::XML::DOM is a plugin interface to XML::DOM. more>>
Template::Plugin::XML::DOM is a plugin interface to XML::DOM.
SYNOPSIS
# load plugin
[% USE dom = XML.DOM %]
# also provide XML::Parser options
[% USE dom = XML.DOM(ProtocolEncoding = ISO-8859-1) %]
# parse an XML file
[% doc = dom.parse(filename) %]
[% doc = dom.parse(file = filename) %]
# parse XML text
[% doc = dom.parse(xmltext) %]
[% doc = dom.parse(text = xmltext) %]
# call any XML::DOM methods on document/element nodes
[% FOREACH node = doc.getElementsByTagName(report) %]
* [% node.getAttribute(title) %] # or [% node.title %]
[% END %]
# define VIEW to present node(s)
[% VIEW report notfound=xmlstring %]
# handler block for a ... element
[% BLOCK report %]
[% item.content(view) %]
[% END %]
# handler block for a ... element
[% BLOCK section %]
< h1 >[% item.title %]< /h1 >
[% item.content(view) %]
[% END %]
# default template block converts item to string
[% BLOCK xmlstring; item.toString; END %]
# block to generate simple text
[% BLOCK text; item; END %]
[% END %]
# now present node (and children) via view
[% report.print(node) %]
# or print node content via view
[% node.content(report) %]
# following methods are soon to be deprecated in favour of views
[% node.toTemplate %]
[% node.childrenToTemplate %]
This is a Template Toolkit plugin interfacing to the XML::DOM module. The plugin loads the XML::DOM module and creates an XML::DOM::Parser object which is stored internally. The parse() method can then be called on the plugin to parse an XML stream into a DOM document.
[% USE dom = XML.DOM %]
[% doc = dom.parse(/tmp/myxmlfile) %]
The XML::DOM plugin object (i.e. dom in these examples) acts as a sentinel for the documents it creates (doc and any others). When the plugin object goes out of scope at the end of the current template, it will automatically call dispose() on any documents that it has created. Note that if you dispose of the the plugin object before the end of the block (i.e. by assigning a new value to the dom variable) then the documents will also be disposed at that point and should not be used thereafter.
[% USE dom = XML.DOM %]
[% doc = dom.parse(/tmp/myfile) %]
[% dom = new value %] # releases XML.DOM plugin and calls
# dispose() on doc, so dont use it!
The plugin constructor will also accept configuration options destined for the XML::Parser object:
[% USE dom = XML.DOM(ProtocolEncoding = ISO-8859-1) %]
<<lessSYNOPSIS
# load plugin
[% USE dom = XML.DOM %]
# also provide XML::Parser options
[% USE dom = XML.DOM(ProtocolEncoding = ISO-8859-1) %]
# parse an XML file
[% doc = dom.parse(filename) %]
[% doc = dom.parse(file = filename) %]
# parse XML text
[% doc = dom.parse(xmltext) %]
[% doc = dom.parse(text = xmltext) %]
# call any XML::DOM methods on document/element nodes
[% FOREACH node = doc.getElementsByTagName(report) %]
* [% node.getAttribute(title) %] # or [% node.title %]
[% END %]
# define VIEW to present node(s)
[% VIEW report notfound=xmlstring %]
# handler block for a ... element
[% BLOCK report %]
[% item.content(view) %]
[% END %]
# handler block for a ... element
[% BLOCK section %]
< h1 >[% item.title %]< /h1 >
[% item.content(view) %]
[% END %]
# default template block converts item to string
[% BLOCK xmlstring; item.toString; END %]
# block to generate simple text
[% BLOCK text; item; END %]
[% END %]
# now present node (and children) via view
[% report.print(node) %]
# or print node content via view
[% node.content(report) %]
# following methods are soon to be deprecated in favour of views
[% node.toTemplate %]
[% node.childrenToTemplate %]
This is a Template Toolkit plugin interfacing to the XML::DOM module. The plugin loads the XML::DOM module and creates an XML::DOM::Parser object which is stored internally. The parse() method can then be called on the plugin to parse an XML stream into a DOM document.
[% USE dom = XML.DOM %]
[% doc = dom.parse(/tmp/myxmlfile) %]
The XML::DOM plugin object (i.e. dom in these examples) acts as a sentinel for the documents it creates (doc and any others). When the plugin object goes out of scope at the end of the current template, it will automatically call dispose() on any documents that it has created. Note that if you dispose of the the plugin object before the end of the block (i.e. by assigning a new value to the dom variable) then the documents will also be disposed at that point and should not be used thereafter.
[% USE dom = XML.DOM %]
[% doc = dom.parse(/tmp/myfile) %]
[% dom = new value %] # releases XML.DOM plugin and calls
# dispose() on doc, so dont use it!
The plugin constructor will also accept configuration options destined for the XML::Parser object:
[% USE dom = XML.DOM(ProtocolEncoding = ISO-8859-1) %]
Download (0.026MB)
Added: 2006-07-14 License: GPL (GNU General Public License) Price:
1198 downloads
Template::Plugin::ASCIITable 0.1
Template::Plugin::ASCIITable is a Perl module that allows you to use Text::ASCIITable in your templates. more>>
Template::Plugin::ASCIITable is a Perl module that allows you to use Text::ASCIITable in your templates.
SYNOPSIS
[% USE ASCIITable %]
blah
[% ASCIITable.cols(a, b, c);
ASCIITable.rows([1,2,3],[one,two,three]);
ASCIITable.draw() %]
A plugin object will be instantiated with the directive:
[% USE ASCIITable %]
You can pass a number of parameters to the constructor, for example:
[% USE ASCIITable(cols => [a,b,c], show=>rowline) %]
See "Parameters" for details.
To obtain the table, you invoke the draw method, to which you can pass the same parameters:
[% ASCIITable.draw(rows=>[[1,2,3],[one,two,three]]) %]
METHODS
new
This is the plugin construtor. You should never call it directly: use the USE directive.
draw
This method invokes Text::ASCIITable to obtain the textual representation of the table, and returns it.
You can pass various parameters to it, see "Parameters".
<<lessSYNOPSIS
[% USE ASCIITable %]
blah
[% ASCIITable.cols(a, b, c);
ASCIITable.rows([1,2,3],[one,two,three]);
ASCIITable.draw() %]
A plugin object will be instantiated with the directive:
[% USE ASCIITable %]
You can pass a number of parameters to the constructor, for example:
[% USE ASCIITable(cols => [a,b,c], show=>rowline) %]
See "Parameters" for details.
To obtain the table, you invoke the draw method, to which you can pass the same parameters:
[% ASCIITable.draw(rows=>[[1,2,3],[one,two,three]]) %]
METHODS
new
This is the plugin construtor. You should never call it directly: use the USE directive.
draw
This method invokes Text::ASCIITable to obtain the textual representation of the table, and returns it.
You can pass various parameters to it, see "Parameters".
Download (0.007MB)
Added: 2007-04-06 License: Perl Artistic License Price:
931 downloads
Template::Plugin::Heritable 0.02
Template::Plugin::Heritable is a Perl module with OO dispatching and inheritance for templates. more>>
Template::Plugin::Heritable is a Perl module with OO dispatching and inheritance for templates.
SYNOPSIS
[% USE Heritable %]
[%# searches providers for a "view" template method on
class (which should be a metamodel object, eg
someobj.meta in Perl 6) %]
[% Heritable.include(class, "view", { self = object }) %]
[%# return list of paths it would look %]
[% paths = Heritable.dispatch_paths(class, "view") %]
[%# if you dont have the class of the object handy, then
use invoke instead %]
[% Heritable.invoke(object, "method", { self = object } %]
[%# call the next method in the inheritance tree from
inside a template method %]
[% next_template() %]
Template::Plugin::Heritable provides support for selecting an appropriate template based on the class of an object. It is also possible to call the next template in the inheritance heirarchy/chain.
This provides a form of inheritance for template display.
The core of this is the template dispatch mechanism, which deals in terms of a suitable metamodel class. The module currently deals in the following metamodels; but no doubt you could fool it with modules which encapsulate other metamodels (such as Perl 5, NEXT, Class::C3, DBIx::Class::Schema, etc) with minimal effort by conforming to one of their APIs.
<<lessSYNOPSIS
[% USE Heritable %]
[%# searches providers for a "view" template method on
class (which should be a metamodel object, eg
someobj.meta in Perl 6) %]
[% Heritable.include(class, "view", { self = object }) %]
[%# return list of paths it would look %]
[% paths = Heritable.dispatch_paths(class, "view") %]
[%# if you dont have the class of the object handy, then
use invoke instead %]
[% Heritable.invoke(object, "method", { self = object } %]
[%# call the next method in the inheritance tree from
inside a template method %]
[% next_template() %]
Template::Plugin::Heritable provides support for selecting an appropriate template based on the class of an object. It is also possible to call the next template in the inheritance heirarchy/chain.
This provides a form of inheritance for template display.
The core of this is the template dispatch mechanism, which deals in terms of a suitable metamodel class. The module currently deals in the following metamodels; but no doubt you could fool it with modules which encapsulate other metamodels (such as Perl 5, NEXT, Class::C3, DBIx::Class::Schema, etc) with minimal effort by conforming to one of their APIs.
Download (0.021MB)
Added: 2007-07-18 License: Perl Artistic License Price:
828 downloads
Template Lite 2.10
Template Lite is a smaller, faster alternative to the Smarty template engine. more>>
Template Lite is a smaller, faster alternative to the Smarty template engine.
For the most part, it is a drop in replacement for Smarty but uses around half of the memory and is considerably faster and far less CPU intensive when compiling and displaying templates.
Template lite was originally created by Paul Lockaby as a smaller replacement for Smarty. The original package was called Smarty Light. Even though Smarty is an Open Source project the creators of Smarty decided to trademark the name Smarty. Because of this trademarking of the name they contacted Paul Lockaby and told him he could nolonger use Smarty in the name for the package.
Paul Lockaby gave me permission to fork the project if I wanted as he was closing down support and developement for Smarty Light. The initial release of Template Lite contains a few minor bug fixes and some extra features.
I plan on adding more features to Template Lite over the next few months. For the most part Template Lite is a drop in replacement for Smarty. The nice thing about this package is how it uses around half of the memory of Smarty and it is considerably FASTER and far less CPU intensive when compiling and displaying templates.
Enhancements:
- register_resource and unregister_resource support was added.
- Different resources are supported by everything except for cached template output.
- The _get_resource internal function was added for processing "file:" and absolute tag resources.
- The resize_image plugin was added.
- Support for absolute paths to template files was fixed.
<<lessFor the most part, it is a drop in replacement for Smarty but uses around half of the memory and is considerably faster and far less CPU intensive when compiling and displaying templates.
Template lite was originally created by Paul Lockaby as a smaller replacement for Smarty. The original package was called Smarty Light. Even though Smarty is an Open Source project the creators of Smarty decided to trademark the name Smarty. Because of this trademarking of the name they contacted Paul Lockaby and told him he could nolonger use Smarty in the name for the package.
Paul Lockaby gave me permission to fork the project if I wanted as he was closing down support and developement for Smarty Light. The initial release of Template Lite contains a few minor bug fixes and some extra features.
I plan on adding more features to Template Lite over the next few months. For the most part Template Lite is a drop in replacement for Smarty. The nice thing about this package is how it uses around half of the memory of Smarty and it is considerably FASTER and far less CPU intensive when compiling and displaying templates.
Enhancements:
- register_resource and unregister_resource support was added.
- Different resources are supported by everything except for cached template output.
- The _get_resource internal function was added for processing "file:" and absolute tag resources.
- The resize_image plugin was added.
- Support for absolute paths to template files was fixed.
Download (0.086MB)
Added: 2007-01-05 License: LGPL (GNU Lesser General Public License) Price:
1029 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above template plugin mp3 tag search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed