Main > Programming > Libraries >

Template::Plugin::Config::General 0.01

Template::Plugin::Config::General 0.01

Sponsored Links

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

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.003 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 931
Date added: 2007-04-06
Publisher: Igor Lobanov

Template::Plugin::Config::General 0.01 description

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 => [ /web/etc ]
-InterPolateVars => 1,
-UseApacheInclude => 1,
);
my %cfg = $plConfig->getall;

# Reading configuration from template
[%-
USE plConfig = Config::General(
ConfigFile = app.cfg,
ConfigPath = [ /web/etc ]
InterPolateVars = 1,
UseApacheInclude = 1,
);
cfg = plConfig.getall;
-%]
[% cfg.news.title %]
[% cfg.admin.images_url %]

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.

Template::Plugin::Config::General 0.01 Screenshot

Advertisements

Template::Plugin::Config::General 0.01 Keywords

Bookmark Template::Plugin::Config::General 0.01

Hyperlink code:
Link for forum:

Template::Plugin::Config::General 0.01 Copyright

WareSeeker periodically updates pricing and software information of Template::Plugin::Config::General 0.01 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Template::Plugin::Config::General 0.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Template::Plugin::SumOf is a Perl module to calculate the sum with VMETHODS. Free Download
Template::Plugin::Heritable is a Perl module with OO dispatching and inheritance for templates. Free Download
Template::Plugin::JSON is a Perl module that adds a .json vmethod for all TT values. Free Download
Template::Plugin::HTML::BBCode is a template toolkit plugin which implements wrapper around HTML::BBCode module. Free Download
Template::Plugin::Datum is a Perl module with TT2 plugin that converts international date format to German date format. Free Download
Template::Plugins is a Perl module with plugin provider module. Free Download
Template::Plugin::ASCIITable is a Perl module that allows you to use Text::ASCIITable in your templates. Free Download
Template::Plugin::JavaSQL is a Perl module to help generate Java from database schemas. Free Download