perlpoint template tt2 0.02
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1297
PerlPoint::Template::TT2 0.02
PerlPoint::Template::TT2 is a beta of a PerlPoint template processor for Template Toolkit 2 layouts. more>>
PerlPoint::Template::TT2 is a beta of a PerlPoint template processor for Template Toolkit 2 layouts.
METHODS
new()
Parameters:
class
The class name.
Returns: the new object.
Example:
# start page
$result.="nnnn";
# begin header
$result.="nnnn";
# header contents: this was added to the traditional list of template files
$result.=$me->_processTemplate(join(/, $tdir, $options->{$toc ? header_toc_template : header_template}), $toc ? 1 : $params{page});
# complete header
$result.="nnnn";
# begin body
$result.="nnnn";
# now the body contents: start with top part
$result.=$me->_processTemplate(join(/, $tdir, $options->{$toc ? top_toc_template : top_template}), $toc ? 1 : $params{page});
# add navigation, if necessary
$result.=$me->_processTemplate(join(/, $tdir, $options->{$toc ? nav_toc_template : nav_template}), $toc ? 1 : $params{page})
if exists $options->{$toc ? nav_toc_template : nav_template};
# include data (for TOCs, make sure not to add a standard TOC if the tree applet is used
# - this should be more generic in case users use other methods ...)
$result.=$toc ? $result=~/
<<lessMETHODS
new()
Parameters:
class
The class name.
Returns: the new object.
Example:
# start page
$result.="nnnn";
# begin header
$result.="nnnn";
# header contents: this was added to the traditional list of template files
$result.=$me->_processTemplate(join(/, $tdir, $options->{$toc ? header_toc_template : header_template}), $toc ? 1 : $params{page});
# complete header
$result.="nnnn";
# begin body
$result.="nnnn";
# now the body contents: start with top part
$result.=$me->_processTemplate(join(/, $tdir, $options->{$toc ? top_toc_template : top_template}), $toc ? 1 : $params{page});
# add navigation, if necessary
$result.=$me->_processTemplate(join(/, $tdir, $options->{$toc ? nav_toc_template : nav_template}), $toc ? 1 : $params{page})
if exists $options->{$toc ? nav_toc_template : nav_template};
# include data (for TOCs, make sure not to add a standard TOC if the tree applet is used
# - this should be more generic in case users use other methods ...)
$result.=$toc ? $result=~/
Download (0.006MB)
Added: 2007-02-15 License: Perl Artistic License Price:
981 downloads
PerlPoint::Template::Traditional 0.02
PerlPoint::Template::Traditional is a PerlPoint template processor for traditional pp2html layouts. more>>
PerlPoint::Template::Traditional is a PerlPoint template processor for traditional pp2html layouts.
<<less Download (0.013MB)
Added: 2007-02-16 License: Perl Artistic License Price:
980 downloads
Pod::Template 0.02
Pod::Template is a Perl module for building pod documentation from templates. more>>
Pod::Template is a Perl module for building pod documentation from templates.
SYNOPSIS
### As a module ###
use Pod::Template;
my $parser = new Pod::Template;
$parser->parse( template => documentation.ptmpl );
print $parser->as_string
### As a script ###
$ podtmpl -I dir1 -I dir2 documentation.ptmpl
### A simple module prepared to use Pod::Template ###
package My::Module;
=Template print_me
=head2 print_me( $string )
Prints out its argument.
=cut
sub print_me { print shift; return 1 }
### A simple pod file named Extra/Additional.pod ###
=pod
=Template return_vals
This subroutine returns 1 for success and undef for failure.
=cut
### A simple Pod::Template template ###
=Include My::Module
=Include Extra/Additional.pod as Extra
=pod
=head1 SYNOPSIS
use My::Module
My::Module::print_me(some text);
=head2 Functions
=Insert My::Module->print_me
=Insert Extra->return_vals
=cut
Writing documentation on a project maintained by several people which spans more than one module is a tricky matter. There are many things to consider:
Location
Should pod be inline (above every function), at the bottom of the module, or in a distinct file? The first is easier for the developers, but the latter two are better for the pod maintainers.
Order
What order should the documentation be in? Does it belong in the order in which the functions are written, or ordered by another principle, such as frequency of use or function type? Again, the first option is better for the developers, while the second two are better for the user.
References
How should a function in another file be mentioned? Should the documentation simply say see Other::Module, or should it include the relevant section? Duplication means that the documentation is more likely to be outdated, but its bad for a user to have to read numerous documents to simply find out what an inherited method does.
Headers & Footers
What should be done with standard headers and footers? Should they be pasted in to every file, or can the main file be assumed to cover the entire project?
Pod::Template offers a solution to these problems: documentation is built up from templates.
<<lessSYNOPSIS
### As a module ###
use Pod::Template;
my $parser = new Pod::Template;
$parser->parse( template => documentation.ptmpl );
print $parser->as_string
### As a script ###
$ podtmpl -I dir1 -I dir2 documentation.ptmpl
### A simple module prepared to use Pod::Template ###
package My::Module;
=Template print_me
=head2 print_me( $string )
Prints out its argument.
=cut
sub print_me { print shift; return 1 }
### A simple pod file named Extra/Additional.pod ###
=pod
=Template return_vals
This subroutine returns 1 for success and undef for failure.
=cut
### A simple Pod::Template template ###
=Include My::Module
=Include Extra/Additional.pod as Extra
=pod
=head1 SYNOPSIS
use My::Module
My::Module::print_me(some text);
=head2 Functions
=Insert My::Module->print_me
=Insert Extra->return_vals
=cut
Writing documentation on a project maintained by several people which spans more than one module is a tricky matter. There are many things to consider:
Location
Should pod be inline (above every function), at the bottom of the module, or in a distinct file? The first is easier for the developers, but the latter two are better for the pod maintainers.
Order
What order should the documentation be in? Does it belong in the order in which the functions are written, or ordered by another principle, such as frequency of use or function type? Again, the first option is better for the developers, while the second two are better for the user.
References
How should a function in another file be mentioned? Should the documentation simply say see Other::Module, or should it include the relevant section? Duplication means that the documentation is more likely to be outdated, but its bad for a user to have to read numerous documents to simply find out what an inherited method does.
Headers & Footers
What should be done with standard headers and footers? Should they be pasted in to every file, or can the main file be assumed to cover the entire project?
Pod::Template offers a solution to these problems: documentation is built up from templates.
Download (0.008MB)
Added: 2006-09-21 License: Perl Artistic License Price:
1128 downloads
HCKit::Template 0.02
HCKit::Template is a Perl module with a template system for HTML construction. more>>
HCKit::Template is a Perl module with a template system for HTML construction.
This module constructs an HTML page from a template. The conversion proceeds with the help of rewrite rules and data sources. Rewrite rules can be specified in the template file itself, or in the Perl script. Data sources can be XML files, or dynamically constructed in the Perl script.
<<lessThis module constructs an HTML page from a template. The conversion proceeds with the help of rewrite rules and data sources. Rewrite rules can be specified in the template file itself, or in the Perl script. Data sources can be XML files, or dynamically constructed in the Perl script.
Download (0.011MB)
Added: 2006-09-20 License: Perl Artistic License Price:
1129 downloads
Template::Ast 0.02
Template::Ast is a Perl module to process ASTs for Perl Template Toolkit. more>>
Template::Ast is a Perl module to process ASTs for Perl Template Toolkit.
SYNOPSIS
use Template::Ast;
# Rebuild AST stored in file:
$ast = Template::Ast->read(foo.ast) or
die Template::Ast->error();
# Writing existing AST to file:
$ast = { Marry => [24, F], John => [21, M] };
Template::Ast->write($ast, foo.ast) or
die Template::Ast->error();
$ast = Template::Ast->merge([1,2,3], undef); # [1,2,3]
$ast = Template::Ast->merge(undef, [1,2,3]); # [1,2,3]
$ast = Template::Ast->merge(undef, undef); # undef
$ast = Template::Ast->merge({A=>1,B=>2}, [C]); # [C]
$ast = Template::Ast->merge([1,2,3], [5,6]); # [5,6]
$ast = Template::Ast->merge([{A=>1},2], 5); # 5
$ast = Template::Ast->merge({A=>1,B=>2}, {C=>3}); # {A=>1,B=>2,C=>3}
$ast = Template::Ast->merge({A=>1,B=>2}, {B=>3}); # {A=>1,B=>3}
# {A=>1,B=>2}
$ast = Template::Ast->merge({A=>1,B=>undef}, {A=>undef,B=>2});
Template::Ast->merge(
{A=>1,B=>{C=>1,D=>2}},
{B=>{C=>1,D=>3,E=>4}}
); # {A=>1,B=>{C=>1,D=>3,E=>4}}
Template::Ast->merge(
{A=>1,B=>{C=>[1,2]}},
{B=>{C=>[3,4]}}
); # {A=>1,B=>{C=>[3,4]}}
print Template::Ast->dump([$vars], [vars]);
ASTs are essential in the programming model based on Perl Template Toolkit. This module provides some easy interface to do the dirty work involved in AST handling. The term AST used here are referred to any Perl referece pointed to a complex data structure, such as a nested hash, a nested array, or such.
<<lessSYNOPSIS
use Template::Ast;
# Rebuild AST stored in file:
$ast = Template::Ast->read(foo.ast) or
die Template::Ast->error();
# Writing existing AST to file:
$ast = { Marry => [24, F], John => [21, M] };
Template::Ast->write($ast, foo.ast) or
die Template::Ast->error();
$ast = Template::Ast->merge([1,2,3], undef); # [1,2,3]
$ast = Template::Ast->merge(undef, [1,2,3]); # [1,2,3]
$ast = Template::Ast->merge(undef, undef); # undef
$ast = Template::Ast->merge({A=>1,B=>2}, [C]); # [C]
$ast = Template::Ast->merge([1,2,3], [5,6]); # [5,6]
$ast = Template::Ast->merge([{A=>1},2], 5); # 5
$ast = Template::Ast->merge({A=>1,B=>2}, {C=>3}); # {A=>1,B=>2,C=>3}
$ast = Template::Ast->merge({A=>1,B=>2}, {B=>3}); # {A=>1,B=>3}
# {A=>1,B=>2}
$ast = Template::Ast->merge({A=>1,B=>undef}, {A=>undef,B=>2});
Template::Ast->merge(
{A=>1,B=>{C=>1,D=>2}},
{B=>{C=>1,D=>3,E=>4}}
); # {A=>1,B=>{C=>1,D=>3,E=>4}}
Template::Ast->merge(
{A=>1,B=>{C=>[1,2]}},
{B=>{C=>[3,4]}}
); # {A=>1,B=>{C=>[3,4]}}
print Template::Ast->dump([$vars], [vars]);
ASTs are essential in the programming model based on Perl Template Toolkit. This module provides some easy interface to do the dirty work involved in AST handling. The term AST used here are referred to any Perl referece pointed to a complex data structure, such as a nested hash, a nested array, or such.
Download (0.020MB)
Added: 2007-06-29 License: Perl Artistic License Price:
847 downloads
PerlPoint::Parser 0.45
PerlPoint::Parser Perl module is a PerlPoint Parser. more>>
PerlPoint::Parser Perl module is a PerlPoint Parser.
SYNOPSIS
# load the module:
use PerlPoint::Parser;
# build the parser and run it
# to get intermediate data in @stream
my ($parser)=new PerlPoint::Parser;
$parser->run(
stream => @stream,
files => @files,
);
The PerlPoint format, initially designed by Tom Christiansen, is intended to provide a simple and portable way to generate slides without the need of a proprietary product. Slides can be prepared in a text editor of your choice, generated on any platform where you find perl, and presented by any browser which can render the chosen output format.
To sum it up, PerlPoint Software takes an ASCII text and transforms it into slides written in a certain document description language. This is, by tradition, usually HTML, but you may decide to use another format like XML, SGML, TeX or whatever you want.
Well, this sounds fine, but how to build a translator which transforms ASCII into the output format of your choice? Thats what PerlPoint::Parser is made for. It performs the first translation step by parsing ASCII and transforming it into an intermediate stream format, which can be processed by a subsequently called translator backend. By separating parsing and output generation we get the flexibility to write as many backends as necessary by using the same parser frontend for all translators.
PerlPoint::Parser supports the complete GRAMMAR with exception of certain tags. Tags are supported the most common way: the parser recognizes any tag which is declared by the author of a translator. This way the parser can be used for various flavours of the PerlPoint language without having to be modified. So, if there is a need of a certain new flag, it can quickly be added without any change to PerlPoint::Parser.
The following chapters describe the input format (GRAMMAR) and the generated stream format (STREAM FORMAT). Finally, the class methods are described to show you how to build a parser.
<<lessSYNOPSIS
# load the module:
use PerlPoint::Parser;
# build the parser and run it
# to get intermediate data in @stream
my ($parser)=new PerlPoint::Parser;
$parser->run(
stream => @stream,
files => @files,
);
The PerlPoint format, initially designed by Tom Christiansen, is intended to provide a simple and portable way to generate slides without the need of a proprietary product. Slides can be prepared in a text editor of your choice, generated on any platform where you find perl, and presented by any browser which can render the chosen output format.
To sum it up, PerlPoint Software takes an ASCII text and transforms it into slides written in a certain document description language. This is, by tradition, usually HTML, but you may decide to use another format like XML, SGML, TeX or whatever you want.
Well, this sounds fine, but how to build a translator which transforms ASCII into the output format of your choice? Thats what PerlPoint::Parser is made for. It performs the first translation step by parsing ASCII and transforming it into an intermediate stream format, which can be processed by a subsequently called translator backend. By separating parsing and output generation we get the flexibility to write as many backends as necessary by using the same parser frontend for all translators.
PerlPoint::Parser supports the complete GRAMMAR with exception of certain tags. Tags are supported the most common way: the parser recognizes any tag which is declared by the author of a translator. This way the parser can be used for various flavours of the PerlPoint language without having to be modified. So, if there is a need of a certain new flag, it can quickly be added without any change to PerlPoint::Parser.
The following chapters describe the input format (GRAMMAR) and the generated stream format (STREAM FORMAT). Finally, the class methods are described to show you how to build a parser.
Download (0.41MB)
Added: 2007-02-12 License: Perl Artistic License Price:
985 downloads
PerlPoint::Tags 0.45
PerlPoint::Tags is a Perl module that can processes PerlPoint tag declarations. more>>
PerlPoint::Tags is a Perl module that can process PerlPoint tag declarations.
SYNOPSIS
# declare a tag declaration package
package PerlPoint::Tags::New;
# declare base "class"
use base qw(PerlPoint::Tags);
PerlPoint is built a modularized way. The base packages provide parsing and stream processing for all translators into target formats and are therefore intended to be as general as possible. Thats why they not even define tags, because every translator author may wish to provide own tags special to the addressed target projector (or format, respectively). On the other hand, the parser needs to know about tags to recognize them correctly. That is where this module comes in. It serves as a base of tag declaration modules by providing a general import() method to be inherited by them. This method scans the invoking module for certain data structures containing tag declarations and imports these data into a structure in its own namespace. The parser knows about this PerlPoint::Tags collection and makes it the base of its tag handling.
It is recommended to have a "top level" tag declaration module for each PerlPoint translator, so there could be a PerlPoint::Tags::HTML, a PerlPoint::Tags::Latex, PerlPoint::Tags::SDF, a PerlPoint::Tags::XML and so on. (These modules of course may simply invoke lower level declarations.)
Note: We are speaking in terms of "classes" here but of course we are actually only using the mechanism of import() together with inheritance to provide an intuitive and easy to use way of declaration.
As an additional feature, the module provides a method addTagSets() to allow translator users to declare tags additionally.
<<lessSYNOPSIS
# declare a tag declaration package
package PerlPoint::Tags::New;
# declare base "class"
use base qw(PerlPoint::Tags);
PerlPoint is built a modularized way. The base packages provide parsing and stream processing for all translators into target formats and are therefore intended to be as general as possible. Thats why they not even define tags, because every translator author may wish to provide own tags special to the addressed target projector (or format, respectively). On the other hand, the parser needs to know about tags to recognize them correctly. That is where this module comes in. It serves as a base of tag declaration modules by providing a general import() method to be inherited by them. This method scans the invoking module for certain data structures containing tag declarations and imports these data into a structure in its own namespace. The parser knows about this PerlPoint::Tags collection and makes it the base of its tag handling.
It is recommended to have a "top level" tag declaration module for each PerlPoint translator, so there could be a PerlPoint::Tags::HTML, a PerlPoint::Tags::Latex, PerlPoint::Tags::SDF, a PerlPoint::Tags::XML and so on. (These modules of course may simply invoke lower level declarations.)
Note: We are speaking in terms of "classes" here but of course we are actually only using the mechanism of import() together with inheritance to provide an intuitive and easy to use way of declaration.
As an additional feature, the module provides a method addTagSets() to allow translator users to declare tags additionally.
Download (0.41MB)
Added: 2007-02-13 License: Perl Artistic License Price:
983 downloads
PerlPoint::Import::POD 0.06
PerlPoint::Import::POD is a standard PerlPoint import filter for POD. more>>
PerlPoint::Import::POD is a standard PerlPoint import filter for POD.
SYNOPSIS
# command line: process a POD file
perlpoint ... IMPORT:file.pod
...
# or, in a PerlPoint source:
// include a POD file with "pod" extension
INCLUDE{import=1 file="example.pod"}
// include a POD file without "pod" extension
INCLUDE{import=pod file="example"}
// import a snippet in POD,
// which in turn contains some PerlPoint
EMBED{import=pod}
=head2 Embedded PerlPoint
A POD paragraph.
=for perlpoint It I !
END_EMBED
Standard import filters are loaded automatically by the Parser when you import a POD file in one of the ways shown in the SYNOPSIS.
FUNCTION
According to the standard import filter API (see PerlPoint::Parser) this module provides one function, importFilter(). I transforms a POD file into PerlPoint.
<<lessSYNOPSIS
# command line: process a POD file
perlpoint ... IMPORT:file.pod
...
# or, in a PerlPoint source:
// include a POD file with "pod" extension
INCLUDE{import=1 file="example.pod"}
// include a POD file without "pod" extension
INCLUDE{import=pod file="example"}
// import a snippet in POD,
// which in turn contains some PerlPoint
EMBED{import=pod}
=head2 Embedded PerlPoint
A POD paragraph.
=for perlpoint It I !
END_EMBED
Standard import filters are loaded automatically by the Parser when you import a POD file in one of the ways shown in the SYNOPSIS.
FUNCTION
According to the standard import filter API (see PerlPoint::Parser) this module provides one function, importFilter(). I transforms a POD file into PerlPoint.
Download (0.011MB)
Added: 2007-02-14 License: Perl Artistic License Price:
982 downloads
PerlPoint::Tags::XML 0.04
PerlPoint::Tags::XML is a PerlPoint tag set used by pp2sdf. more>>
PerlPoint::Tags::XML is a PerlPoint tag set used by pp2sdf.
SYNOPSIS
# declare tags used by pp2sdf
use PerlPoint::Tags::XML;
This module declares PerlPoint tags used by XML converters. Tag declarations are used by the parser to determine if a used tag is valid, if it needs options, if it needs a body and so on. Please see PerlPoint::Tags for a detailed description of tag declaration.
Every PerlPoint translator willing to handle the tags of this module can declare this by using the module in the scope where it built the parser object.
# declare basic tags
use PerlPoint::Tags::XML;
# load parser module
use PerlPoint::Parser;
...
# build parser
my $parser=new PerlPoint::Parser(...);
...
<<lessSYNOPSIS
# declare tags used by pp2sdf
use PerlPoint::Tags::XML;
This module declares PerlPoint tags used by XML converters. Tag declarations are used by the parser to determine if a used tag is valid, if it needs options, if it needs a body and so on. Please see PerlPoint::Tags for a detailed description of tag declaration.
Every PerlPoint translator willing to handle the tags of this module can declare this by using the module in the scope where it built the parser object.
# declare basic tags
use PerlPoint::Tags::XML;
# load parser module
use PerlPoint::Parser;
...
# build parser
my $parser=new PerlPoint::Parser(...);
...
Download (0.015MB)
Added: 2007-02-20 License: Perl Artistic License Price:
976 downloads
HTML::Template::JIT 0.05
HTML::Template::JIT is a just-in-time compiler for HTML::Template. more>>
HTML::Template::JIT is a just-in-time compiler for HTML::Template. Templates are compiled into native machine code using Inline::C.
When using HTML::Template::JIT, the compiled code is stored to disk and reused on subsequent calls. HTML::Template::JIT is up to 8 times as fast as HTML::Template using caching.
Enhancements:
- Fixed param() to allow for blessed hash-refs. [Alex Kapranoff]
- Fixed url-escaping to work with UTF-8 characters. [Alex Kapranoff]
- Added support for JS escaping. [Alex Kapranoff]
- Fixed a compatibility problem with HTML::Template v2.8, which is now a prerequisite.
<<lessWhen using HTML::Template::JIT, the compiled code is stored to disk and reused on subsequent calls. HTML::Template::JIT is up to 8 times as fast as HTML::Template using caching.
Enhancements:
- Fixed param() to allow for blessed hash-refs. [Alex Kapranoff]
- Fixed url-escaping to work with UTF-8 characters. [Alex Kapranoff]
- Added support for JS escaping. [Alex Kapranoff]
- Fixed a compatibility problem with HTML::Template v2.8, which is now a prerequisite.
Download (0.030MB)
Added: 2005-12-27 License: GPL (GNU General Public License) Price:
1398 downloads
kmail templates 20061018
kmail templates is a patch for current 3.5 branch of kdepim package. more>>
kmail templates is a patch for current 3.5 branch of kdepim package which replaces Phrases configuration with more rich templates engine.
Templates use template syntax of well-known Thebat! mail client and allow construct a little more complicated messages than now.
<<lessTemplates use template syntax of well-known Thebat! mail client and allow construct a little more complicated messages than now.
Download (MB)
Added: 2006-10-19 License: GPL (GNU General Public License) Price:
1112 downloads
PerlPoint::Converters 1.0205
PerlPoint::Converters is a Perl module that contains a README and common functions for PerlPoint converters. more>>
PerlPoint::Converters is a Perl module that contains a README and common functions for PerlPoint converters.
PerlPoint is a simple text format which allows easy typing of text with headlines, bullet lists, normal text paragraphs, indented paragraphs for code examples etc., from which slides for presentations can be generated by a script without the need of proprietary software.
Since there is a large variety of platforms which provide web browsers, HTML is a good choice for the output format. In principle, however, it is possible to generate each output format whose specification is known. At the moment there exist converters for HTML, LaTeX (alpha software) and SDF. The latter both may be used to generate printable output or to provide the basis for further processing.
<<lessPerlPoint is a simple text format which allows easy typing of text with headlines, bullet lists, normal text paragraphs, indented paragraphs for code examples etc., from which slides for presentations can be generated by a script without the need of proprietary software.
Since there is a large variety of platforms which provide web browsers, HTML is a good choice for the output format. In principle, however, it is possible to generate each output format whose specification is known. At the moment there exist converters for HTML, LaTeX (alpha software) and SDF. The latter both may be used to generate printable output or to provide the basis for further processing.
Download (0.45MB)
Added: 2007-01-11 License: Perl Artistic License Price:
1016 downloads
PerlPoint::Tags::SDF 0.45
PerlPoint::Tags::SDF is a PerlPoint tag set used by pp2sdf. more>>
PerlPoint::Tags::SDF is a PerlPoint tag set used by pp2sdf.
SYNOPSIS
# declare tags used by pp2sdf
use PerlPoint::Tags::SDF;
This module declares PerlPoint tags used by pp2sdf. Tag declarations are used by the parser to determine if a used tag is valid, if it needs options, if it needs a body and so on. Please see PerlPoint::Tags for a detailed description of tag declaration.
Every PerlPoint translator willing to handle the tags of this module can declare this by using the module in the scope where it built the parser object.
# declare basic tags
use PerlPoint::Tags::SDF;
# load parser module
use PerlPoint::Parser;
...
# build parser
my $parser=new PerlPoint::Parser(...);
...
TAGS
PerlPoint::Tags::SDF declares all the tags of PerlPoint::Tags::Basic.
Additionally, the PerlPoint::Tags::HTML tags L, PAGEREF, SECTIONREF, U and XREF tags are supported. pp2sdf might interprete them slightly different to pp2html, please read its documentation for details.
<<lessSYNOPSIS
# declare tags used by pp2sdf
use PerlPoint::Tags::SDF;
This module declares PerlPoint tags used by pp2sdf. Tag declarations are used by the parser to determine if a used tag is valid, if it needs options, if it needs a body and so on. Please see PerlPoint::Tags for a detailed description of tag declaration.
Every PerlPoint translator willing to handle the tags of this module can declare this by using the module in the scope where it built the parser object.
# declare basic tags
use PerlPoint::Tags::SDF;
# load parser module
use PerlPoint::Parser;
...
# build parser
my $parser=new PerlPoint::Parser(...);
...
TAGS
PerlPoint::Tags::SDF declares all the tags of PerlPoint::Tags::Basic.
Additionally, the PerlPoint::Tags::HTML tags L, PAGEREF, SECTIONREF, U and XREF tags are supported. pp2sdf might interprete them slightly different to pp2html, please read its documentation for details.
Download (0.41MB)
Added: 2007-02-14 License: Perl Artistic License Price:
982 downloads
Piffle::Template 0.3.1
Piffle::Template is a Perlish templating language. more>>
Piffle::Template is a Perlish templating language.
SYNOPSIS
use Piffle::Template;
use Piffle::Template qw{template_to_perl expand_template};
# OO syntax, with output stored and returned:
print Piffle::Template->expand(source_file => foo/fish.xml,
include_path => [foo/inc,foo]);
# Immediate: OO syntax: output goes directly to STDOUT:
Piffle::Template->expand(source_file => foo/fish.xml,
output_file => *STDOUT);
# Procedural syntax, data from a string
$string =
< ?perl } ? >
< ?include std_disclaimer.txt? >
__END__
expand_template(source => $string,
output_file => *FILE);
This is a simple Perl-embedding syntax for template code which is geared towards allowing authors to validate their templates directly against schemas or DTDs. The embedded language is Perl itself, which allows great flexibility at the expense of having to be disciplined about the barrier between template code and module code.
In operation, the source template is transformed to an in-memory Perl script which is then run using Perls eval operator. Errors can be redirected to files or subroutines, and the output can be either caught in a variable or written to a file or open filehandle.
<<lessSYNOPSIS
use Piffle::Template;
use Piffle::Template qw{template_to_perl expand_template};
# OO syntax, with output stored and returned:
print Piffle::Template->expand(source_file => foo/fish.xml,
include_path => [foo/inc,foo]);
# Immediate: OO syntax: output goes directly to STDOUT:
Piffle::Template->expand(source_file => foo/fish.xml,
output_file => *STDOUT);
# Procedural syntax, data from a string
$string =
< ?perl } ? >
< ?include std_disclaimer.txt? >
__END__
expand_template(source => $string,
output_file => *FILE);
This is a simple Perl-embedding syntax for template code which is geared towards allowing authors to validate their templates directly against schemas or DTDs. The embedded language is Perl itself, which allows great flexibility at the expense of having to be disciplined about the barrier between template code and module code.
In operation, the source template is transformed to an in-memory Perl script which is then run using Perls eval operator. Errors can be redirected to files or subroutines, and the output can be either caught in a variable or written to a file or open filehandle.
Download (0.009MB)
Added: 2006-09-13 License: Perl Artistic License Price:
1136 downloads
web.template 0.9.1 RC2
web.template is a template framework for PHP 5 that uses an XML-based language. more>>
web.template is a template framework for PHP 5 that uses an XML-based language.
It allows you to create classes with getters that are made accessible to the framework with an addVarClass method.
web.template also supports modifiers, tags, and resource drivers for template or cache storage.
Class Constant Summary
VAR_CLASS_OBJECT = 1
VAR_CLASS_PATH = 2
Variable Summary
array $arrModifiers
array $arrTemplatesResource
array $arrVarClasses
array $arrVariables
boolean $blnCaching
boolean $blnNewLineInCTemplates
IWTResource $objCacheResource
ITemplateCompiler $objCompiler
string $strCacheDir
string $strCompileDir
string $strCustomTagsDir
string $strDefaultResourceProtocol
string $strFilePartSeparator
string $strIDSeparator
string $strLanguage
string $strModifiersDir
string $strTemplateDir
Enhancements:
- This release fixes some small bugs in the fetch() method and in parsing HTML tag parameters.
<<lessIt allows you to create classes with getters that are made accessible to the framework with an addVarClass method.
web.template also supports modifiers, tags, and resource drivers for template or cache storage.
Class Constant Summary
VAR_CLASS_OBJECT = 1
VAR_CLASS_PATH = 2
Variable Summary
array $arrModifiers
array $arrTemplatesResource
array $arrVarClasses
array $arrVariables
boolean $blnCaching
boolean $blnNewLineInCTemplates
IWTResource $objCacheResource
ITemplateCompiler $objCompiler
string $strCacheDir
string $strCompileDir
string $strCustomTagsDir
string $strDefaultResourceProtocol
string $strFilePartSeparator
string $strIDSeparator
string $strLanguage
string $strModifiersDir
string $strTemplateDir
Enhancements:
- This release fixes some small bugs in the fetch() method and in parsing HTML tag parameters.
Download (0.11MB)
Added: 2006-07-25 License: LGPL (GNU Lesser General Public License) Price:
1188 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 perlpoint template tt2 0.02 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