Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.209.730 Times

Template::Plugin::Config::General 0.01

  Date Added: June 03, 2010  |  Visits: 1.220

Template::Plugin::Config::General

Report Broken Link
Printer Friendly Version


Product Homepage
Download (92 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Configuration Implements Libraries Plugin Programming Template Template Toolkit Templatepluginconfiggeneral Url Wrapper
Users rating: 0/10

License: Freeware Size: 3.07 KB
USER REVIEWS
More Reviews or Write Review


TEMPLATE::PLUGIN::CONFIG::GENERAL RELATED
Libraries  -  Template::Plugin::XML::LibXML 1.07
Template::Plugin::XML::LibXML is a XML::LibXML Template Toolkit Plugin. SYNOPSIS [% USE docroot = XML.LibXML("helloworld.xml") %] The message is: [% docroot.find("/greeting/text") %] This module provides a plugin for the XML::LibXML...
13.31 KB  
Libraries  -  Template::Plugin::HTML::BBCode 0.01
Template::Plugin::HTML::BBCode is a template toolkit plugin which implements wrapper around HTML::BBCode module. SYNOPSIS [%- USE HTML::BBCode -%] [% FILTER bbcode %] [b]BBCode[/b] - is simple [i]markup language[/i] used in...
3.07 KB  
Libraries  -  Template::Plugin::XML 2.16
Template::Plugin::XML is a XML plugin for the Template Toolkit. SYNOPSIS [% USE XML; dom = XML.dom(foo.xml); xpath = XML.xpath(bar.xml); simple = XML.simple(baz.xml); rss = XML.simple(news.rdf); %] [% USE XML(file=foo.xml); dom =...
26.62 KB  
Libraries  -  Template::Plugin::SSI 0.11
Template::Plugin::SSI is a plugin to use SSI in Template Toolkit (wrapper for CGI::SSI). SYNOPSIS [% USE SSI %] # virtual include of the file /foo/bar.inc.html [% SSI.include(virtual, /foo/bar.inc.html) %] # file include of the file...
3.07 KB  
Libraries  -  Template::Plugin::Data::HTMLDumper 0.10
Template::Plugin::Data::HTMLDumper is a template toolkit plugin interface to Data::HTMLDumper. SYNOPSIS [% USE Data.HTMLDumper %] [% Data.HTMLDumper.dump(myvar) %] A very simple Template Toolkit Plugin Interface to the Data::HTMLDumper...
2.05 KB  
Libraries  -  Template::Ast 0.02
Template::Ast is a Perl module to process ASTs for Perl Template Toolkit. SYNOPSIS use Template::Ast; # Rebuild AST stored in file: $ast = Template::Ast->read(foo.ast) or die Template::Ast->error(); # Writing existing AST to file: $ast...
20.48 KB  
Libraries  -  Template::Multilingual 0.08
Template::Multilingual is a Perl module with multilingual templates for Template Toolkit. SYNOPSIS This subclass of Template Toolkits Template class supports multilingual templates: templates that contain text in several languages. <...
5.12 KB  
Programming  -  Apache::Template 0.09
Apache::Template is a Perl module that provides a simple interface to the Template Toolkit from Apache/mod_perl. The Template Toolkit is a fast, powerful and extensible template processing system written in Perl. It implements a general purpose...
20.48 KB  
Libraries  -  Template::Provider::OpenOffice 0.01
Template::Provider::OpenOffice is a OpenOffice (ODT) Provider for Template Toolkit. This module extends Template::Provider to automatically extract the content.xml file from an OpenOffice zip file and run it through Template::Toolkit for...
3.07 KB  
Libraries  -  Template::FAQ 2.19
Template::FAQ contains Frequently Asked Questions about the Template Toolkit. Template Toolkit Language Why doesnt [% a = b IF c %] work as expected? Because the parser interprets it as [% a = (b IF c) %] Do this instead: [% SET a = b...
778.24 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB