Maplat::Web::StandardFields - provide some standard fields for default_webdata
This module provides static as well as dynamic data fields for default_webdata
With this module, you can set static information in default_webdata directly from the configuration file. It also allows to set them host-specific.
StandardFields also can use memcached-keys to set data fields in default_webdata. So, nearly all data that doesn't require logic (e.g. database, calculation etc), this is the simplest to use module to provide data to the template renderer.
<module> <modname>defaultwebdata</modname> <pm>StandardFields</pm> <options> <memcache>memcache</memcache> <static> <fields> <!-- set menuitem width --> <toplink_width>140px</toplink_width> <!-- per host configuration --> <hosts> <WXPDEV> <!-- Display an info message on development system --> <header_message>Testsystem</header_message> </WXPDEV> </hosts> </fields> </static> <memory> <fields> <!-- versions and buildnums read from memcached --> <SVCVersion>VERSION::Maplat SVC</SVCVersion> <SVCBuildNum>BUILD::Maplat SVC</SVCBuildNum> <WebGuiVersion>VERSION::Maplat WebGui</WebGuiVersion> <WebGuiBuildNum>BUILD::Maplat WebGui</WebGuiBuildNum> <MaplatWorkerVersion>VERSION::Maplat Worker</MaplatWorkerVersion> <MaplatWorkerBuildNum>BUILD::Maplat Worker</MaplatWorkerBuildNum> <MaplatAdmWorkerVersion>VERSION::MaplatAdm Worker</MaplatAdmWorkerVersion> <MaplatAdmWorkerBuildNum>BUILD::MaplatAdm Worker</MaplatAdmWorkerBuildNum> </fields> </memory> </options> </module>
This module depends on the following modules beeing configured (the 'as "somename"' means the key name in this modules configuration):
Maplat::Web::Memcache as "memcache"
Maplat::Web Maplat::Web::Memcache
Rene Schickbauer, <rene.schickbauer@gmail.com>
Copyright (C) 2008-2011 by Rene Schickbauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
To install Maplat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Maplat
CPAN shell
perl -MCPAN -e shell install Maplat
For more information on module installation, please visit the detailed CPAN module installation guide.