Template::Plugin::Config::General

Template::Plugin::Config::General is a template toolkit plugin which implements wrapper around Config::General module.
Download

Template::Plugin::Config::General Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Igor Lobanov
  • Publisher web site:
  • http://search.cpan.org/~liol/Template-Plugin-Translit-RU-0.05/lib/Template/Plugin/Translit/RU.pm

Template::Plugin::Config::General Tags


Template::Plugin::Config::General Description

Template::Plugin::Config::General is a template toolkit plugin which implements wrapper around Config::General module. Template::Plugin::Config::General is a template toolkit plugin which implements wrapper around Config::General module.SYNOPSIS # Config file format ; app.cfg - common configuration for scripts and both ; static and dynamic template pages. base_url = /~liol images_url = $base_url/images < news > title = Top News url = $base_url/news images_url = $url/images < /news > < admin > title = Admin area url = $base_url/admin images_url = $url/images < /admin > include specific.cfg # Reading configuration from code use Config::General; $plConfig = new Config::General( -ConfigFile => 'app.cfg', -ConfigPath => -InterPolateVars => 1, -UseApacheInclude => 1, ); my g = $plConfig->getall; # Reading configuration from template InterPolateVars = 1, UseApacheInclude = 1, ); cfg = plConfig.getall; -%] This module implements interface wrapper around Config::General. The task of easy access to configuration items from both code and templates may appear in applications which uses configuration files which are saved apart from code and templates. This module would help to avoid data doubling. To access configuration from code we can use Config::General module which parses apache-like config files. This plugin makes the same thing for templates. So we can use the same file in both code, "dynamic" templates and "static" templates. There is no difference what application uses template - ttree or other script. Plugin would provide proper configuration. Requirements: · Perl


Template::Plugin::Config::General Related Software