Catalyst::TraitFor::Component::ConfigPerSite

Extend Catalyst Components to share application accross sites
Download

Catalyst::TraitFor::Component::ConfigPerSite Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Aaron James Trevena
  • Publisher web site:
  • http://search.cpan.org/~teejay/

Catalyst::TraitFor::Component::ConfigPerSite Tags


Catalyst::TraitFor::Component::ConfigPerSite Description

Catalyst::TraitFor::Component::ConfigPerSite is a Perl module that allows you to share an application between sites, clients, etc with different configuration for templates and databases (and possibly other parts).Compose this role into your trait to extend a catalyst component such as a model or view.SYNOPSIS in testblogapp.conf: name TestBlogApp site_name TestBlog default_view TT < Model::DB > schema_class TestBlogApp::Schema < connect_info > dsn dbi:SQLite:dbname=t/test.db user username password password < /connect_info > < /Model::DB > < View::TT > TEMPLATE_EXTENSION .tt WRAPPER site-wrapper.tt INCLUDE_PATH t/templates < /View::TT > < TraitFor::Component::ConfigPerSite > < foo.bar > < Model::DB > schema_class TestBlogApp::Schema < connect_info > dsn dbi:SQLite:dbname=t/test2.db user username password password < /connect_info > instance_cache_key foo_bar_model_db < /Model::DB > < View::TT > TEMPLATE_EXTENSION .tt WRAPPER site-wrapper.tt INCLUDE_PATH t/more_templates instance_cache_key foo_bar_view_tt < /View::TT > < /foo.bar > < /TraitFor::Component::ConfigPerSite >Product's homepage


Catalyst::TraitFor::Component::ConfigPerSite Related Software