template plugin translit ru
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 2110
Template::Plugin::Translit::RU 0.05
Template::Plugin::Translit::RU is a filter for converting cyrillic text into transliterated one and back. more>>
Template::Plugin::Translit::RU is a filter for converting cyrillic text into transliterated one and back.
SYNOPSIS
Use as filters.
[% USE Translit::RU translit detranslit %]
[% FILTER translit( koi ) %]
...
This text would stay unchanged because it is not cyrillic.
...
[% END %]
Use as object. First argument - text for conversion. Second optional argument - charset (koi is default).
[% USE plTranslit = Translit::RU %]
[% plTranslit.translit( without cyrillic text is useless ) %]
[% plTranslit.detranslit( kirilitca, win ) %]
Template::Plugin::Translit::RU is Template Toolkit filter which allows to convert cyrillic text into transliterated latin text. Currently two most popular charsets are supported - koi8-r and windows-1251. Also back conversion supported.
<<lessSYNOPSIS
Use as filters.
[% USE Translit::RU translit detranslit %]
[% FILTER translit( koi ) %]
...
This text would stay unchanged because it is not cyrillic.
...
[% END %]
Use as object. First argument - text for conversion. Second optional argument - charset (koi is default).
[% USE plTranslit = Translit::RU %]
[% plTranslit.translit( without cyrillic text is useless ) %]
[% plTranslit.detranslit( kirilitca, win ) %]
Template::Plugin::Translit::RU is Template Toolkit filter which allows to convert cyrillic text into transliterated latin text. Currently two most popular charsets are supported - koi8-r and windows-1251. Also back conversion supported.
Download (0.005MB)
Added: 2007-04-07 License: Perl Artistic License Price:
575 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::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::JavaSQL 0.4
Template::Plugin::JavaSQL is a Perl module to help generate Java from database schemas. more>>
Template::Plugin::JavaSQL is a Perl module to help generate Java from database schemas.
SYNOPSES
Within an XML file processed by the Java plugin:
< sql:
query="select foo as f, bar as b from some_table"
>
or
< sql:
table="some_table"
>
Via a template such as:
[% USE Java %]
[% Use JavaSQL %]
...
String query =
"select [% JavaSQL.columnNames.join(", ") %] from [% JavaSQL.tables.join(", ") %]";
[% IF JavaSQL.where %]
query += " where [% JavaSQL.where %] ";
[% ELSE %]
query += " where 0=0 ";
[% END %]
[% FOREACH JavaSQL.columns %]
if (${varName}Set) { query += " and $name = ?"; }
[% END %]
[% IF JavaSQL.order %]
query += "order by [% JavaSQL.order %]";
[% END %]
stmt = myConnection.prepareStatement(query);
Just use the DBClass.template from the distribution for fully functional database classes.
In addition to methods that refer to parts of a SQL query, any columns resultant from the query or table will be added as java variables to the variables hash, with close-as-possible mapped types.
<<lessSYNOPSES
Within an XML file processed by the Java plugin:
< sql:
query="select foo as f, bar as b from some_table"
>
or
< sql:
table="some_table"
>
Via a template such as:
[% USE Java %]
[% Use JavaSQL %]
...
String query =
"select [% JavaSQL.columnNames.join(", ") %] from [% JavaSQL.tables.join(", ") %]";
[% IF JavaSQL.where %]
query += " where [% JavaSQL.where %] ";
[% ELSE %]
query += " where 0=0 ";
[% END %]
[% FOREACH JavaSQL.columns %]
if (${varName}Set) { query += " and $name = ?"; }
[% END %]
[% IF JavaSQL.order %]
query += "order by [% JavaSQL.order %]";
[% END %]
stmt = myConnection.prepareStatement(query);
Just use the DBClass.template from the distribution for fully functional database classes.
In addition to methods that refer to parts of a SQL query, any columns resultant from the query or table will be added as java variables to the variables hash, with close-as-possible mapped types.
Download (0.018MB)
Added: 2006-11-01 License: Perl Artistic License Price:
1087 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::AutoLink 0.03
Template::Plugin::AutoLink is a TT filter plugin to replace URL and e-mail address with hyperlink automatically. more>>
Template::Plugin::AutoLink is a TT filter plugin to replace URL and e-mail address with hyperlink automatically.
SYNOPSIS
# in template
[% use AutoLink %]
[% FILTER auto_link target=_blank %]
Search here
http://www.google.com
[% END %]
# result in
Search here
< a href="http://www.google.com" target="_blank" >http://www.google.com< /a >
<<lessSYNOPSIS
# in template
[% use AutoLink %]
[% FILTER auto_link target=_blank %]
Search here
http://www.google.com
[% END %]
# result in
Search here
< a href="http://www.google.com" target="_blank" >http://www.google.com< /a >
Download (0.003MB)
Added: 2007-04-06 License: Perl Artistic License Price:
931 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::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::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::ByDate 0.03
Template::Plugin::ByDate is a Perl module that keeps/removes included text based on whether the current date is within range. more>>
Template::Plugin::ByDate is a Perl module that keeps/removes included text based on whether the current date is within range.
SYNOPSIS
[% USE ByDate %]
[% FILTER ByDate
starting = 2006-05-02
until = 2006-08-22 %]
This text only shows up from May 2, 2006 through August 22, 2006.
[% END %]
FUNCTIONS
init
filter
We accept one optional argument, the word "not". If specified, it will reverse the meaning of the filter: rather than keeping the text if the current date is between starting and until, ignore it. e.g.,
[% FILTER ByDate
starting = 2006-05-02
until = 2006-08-22 %]
This only shows up inside the date range
[% END %]
while
[% FILTER ByDate
not starting = 2006-05-02
until = 2006-08-22 %]
This only shows up outside the date range
[% END %]
The starting and until dates are actually parsed by Date::Parse. If you do not specify a time, the starting time is 00:00:00, while the until time is 23:59:59. This is done by checking the until stamp for a colon - if there is no colon, we add " 23:59:59" to the string before passing it into Date::Parse. If that doesnt work for you, please let me know what string youre using.
<<lessSYNOPSIS
[% USE ByDate %]
[% FILTER ByDate
starting = 2006-05-02
until = 2006-08-22 %]
This text only shows up from May 2, 2006 through August 22, 2006.
[% END %]
FUNCTIONS
init
filter
We accept one optional argument, the word "not". If specified, it will reverse the meaning of the filter: rather than keeping the text if the current date is between starting and until, ignore it. e.g.,
[% FILTER ByDate
starting = 2006-05-02
until = 2006-08-22 %]
This only shows up inside the date range
[% END %]
while
[% FILTER ByDate
not starting = 2006-05-02
until = 2006-08-22 %]
This only shows up outside the date range
[% END %]
The starting and until dates are actually parsed by Date::Parse. If you do not specify a time, the starting time is 00:00:00, while the until time is 23:59:59. This is done by checking the until stamp for a colon - if there is no colon, we add " 23:59:59" to the string before passing it into Date::Parse. If that doesnt work for you, please let me know what string youre using.
Download (0.004MB)
Added: 2007-04-13 License: Perl Artistic License Price:
924 downloads
Template::Plugin::HtmlToText 0.02
Template::Plugin::HtmlToText is a plugin interface to HTML::FormatText. more>>
Template::Plugin::HtmlToText is a plugin interface to HTML::FormatText.
SYNOPSIS
Quick summary of what the module does.
Perhaps a little code snippet.
[% USE HtmlToText %]
# use html2text FILTER to var myhtml or myhtmltext
[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 50) %]
[% myhtmltext | html2text %]
# not to a var, but to html code
[% FILTER html2text %]
heavy
[% END %]
[%# output is "heavy", no %]
This plugin provides an interface to the HTML::FormatText module which format HTML as plaintext.
<<lessSYNOPSIS
Quick summary of what the module does.
Perhaps a little code snippet.
[% USE HtmlToText %]
# use html2text FILTER to var myhtml or myhtmltext
[% myhtml FILTER html2text(leftmargin => 0, rightmargin => 50) %]
[% myhtmltext | html2text %]
# not to a var, but to html code
[% FILTER html2text %]
heavy
[% END %]
[%# output is "heavy", no %]
This plugin provides an interface to the HTML::FormatText module which format HTML as plaintext.
Download (0.003MB)
Added: 2007-08-02 License: Perl Artistic License Price:
813 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::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::Java::Constants 0.4
Template::Plugin::Java::Constants is a Perl module with constants for the Java Template plugin modules. more>>
Template::Plugin::Java::Constants is a Perl module with constants for the Java Template plugin modules.
SYNOPSIS
use Template::Plugin::Java::Constants qw/:regex/; use Template::Plugin::Java::Constants qw/:boolean/; use Template::Plugin::Java::Constants qw/:all/;
regex
The "regex" tag exports qr// compiled regular expressions SCALAR, PRIMITIVE, STRING and ARRAY, these are for matching Java types. All of these match a whole line, with no extra whitespace, and return the matched java type as $1. They may be used as:
$string =~ /@{[SCALAR]}/; # Ugly but effective and relatively fast.
SCALAR
Any primitive or encapsulated primitive: int, or Integer, or String, etc.
PRIMITIVE
Only primitive types like int, float, double, byte, etc.
STRING
An incarnation of java.lang.String.
ARRAY
A java.util.Vector.
boolean
The boolean tag just exports the constants TRUE as 1 and FALSE as 0.
all
Exports all of the proceeding.
<<lessSYNOPSIS
use Template::Plugin::Java::Constants qw/:regex/; use Template::Plugin::Java::Constants qw/:boolean/; use Template::Plugin::Java::Constants qw/:all/;
regex
The "regex" tag exports qr// compiled regular expressions SCALAR, PRIMITIVE, STRING and ARRAY, these are for matching Java types. All of these match a whole line, with no extra whitespace, and return the matched java type as $1. They may be used as:
$string =~ /@{[SCALAR]}/; # Ugly but effective and relatively fast.
SCALAR
Any primitive or encapsulated primitive: int, or Integer, or String, etc.
PRIMITIVE
Only primitive types like int, float, double, byte, etc.
STRING
An incarnation of java.lang.String.
ARRAY
A java.util.Vector.
boolean
The boolean tag just exports the constants TRUE as 1 and FALSE as 0.
all
Exports all of the proceeding.
Download (0.018MB)
Added: 2007-06-02 License: Perl Artistic License Price:
874 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
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 translit ru 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