Any-Renderer

 view release on metacpan or  search on metacpan

lib/Any/Renderer/Template.pm  view on Meta::CPAN


  my $bool = Any::Renderer::Template::requires_template ( $format );

=head1 DESCRIPTION

Any::Renderer::Template renders any Perl data structure passed to it with
Any::Template. The Any::Template backend used depends on the 'format' parameter passed to
the object constructor.

Templates expressed as filenames are cached using a package-level in-memory cache with Cache::AgainstFile.  
This will stat the file to validate the cache before using the cached object, so if the template is updated,
this will be immediately picked up by all processes holding a cached copy.

=head1 FORMATS

All the formats supported by Any::Template.  Try this to find out what's available on your system:

  perl -MAny::Renderer::Template -e "print join(qq{\n}, sort @{Any::Renderer::Template::available_formats()})"

An B<Any::Template> format is also provided.  This uses the default backend (as specified in the ANY_TEMPLATE_DEFAULT environment variable).

lib/Any/Renderer/XSLT.pm  view on Meta::CPAN


  my $bool = Any::Renderer::XSLT::requires_template ( $format );

=head1 DESCRIPTION

Any::Renderer::XSLT renders a Perl data structure as an interstitial XML
representation (via Any::Renderer::XML) and then proceeds to apply a XSLT transformation to it to generate
the final output.

XSL Templates expressed as filenames are cached using a package-level in-memory cache with Cache::AgainstFile.  
This will stat the file to validate the cache before using the cached object, so if the template is updated,
this will be immediately picked up by all processes holding a cached copy.

=head1 FORMATS

=over 4

=item XSLT

=back



( run in 0.348 second using v1.01-cache-2.11-cpan-a5abf4f5562 )