Template::Provider::PrefixDBIC

A template provider that uses DBIC for database access and exhibits fallback functionality
Download

Template::Provider::PrefixDBIC Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Rob Hoelz
  • Publisher web site:
  • http://search.cpan.org/~rhoelz/

Template::Provider::PrefixDBIC Tags


Template::Provider::PrefixDBIC Description

A template provider that uses DBIC for database access and exhibits fallback functionality Template::Provider::PrefixDBIC is a Perl module that combines the fallback functionality of Template::Provider along with the database access of Template::Provider::DBIC.If you don't need the fallback functionality, I highly recommend the Template::Provider::DBIC module.Because it makes use of the full name of the template, we don't extract a table name from the template name, and the SCHEMA option to the constructor is thus unsupported, unlike in Template::Provider::DBIC.SYNOPSIS use MySchema; use Template; use Template::Provider::PrefixDBIC; my $schema = MySchema->connect(...); my $provider = Template::Provider::PrefixDBIC->new( RESULTSET => $schema->resultset(...), PREFIXES => , ); my $template = Template->new({ LOAD_TEMPLATES => , }); $template->process('my_template'); # tries prefix = 'foo', name = 'my_template', then # prefix = 'default', name ='my_template' Requirements: · Perl


Template::Provider::PrefixDBIC Related Software