IWL::Config - provides %IWLConfig
use IWL::Config '%IWLConfig'; print "Skin name: $IWLConfig{SKIN}.\n";
iwl.conf Can be placed inside cgi-bin/ directory, or using the IWL_CONFIG_FILE environment variable: IWL_CONFIG_FILE=/path/to/my/iwl/config/file/bar.alpha
The following variables may be defined inside the config file:
The skin name to use with IWL. Default value: 'default'
The directory, containing the skins. It is relative to the server document root. Default value: '/iwl/skin'
The directory, containing the images. It is relative to the current skin directory. Default value: '/images'
The directory, containing the icons. It is relative to the current skin directory. Default value: '/images/icons'
The extension of the image icons. Default value: 'gif'
The directory, containing all javascript files. It is relative to the server root. Default value: '/iwl/jscript'
The level of strictness. If greater than 1, attribute names will be checked, and and an exception will be thrown in case the name is illegal. Default value: '1'
SKIN = "myskin" SKIN_DIR = "/path/to/iwl/skins" JS_DIR = "/path/to/iwl/jscript" ICON_EXT = "png"
By default, the %IWLConfig variable is filled with default values. If a config file is provided and found, The keys inside the config file will overwrite the default ones. Before the variable is exported, the following keys are mutated:
It is mutated to SKIN_DIR + '/' + SKIN
It is mutated to SKIN_DIR + '/' + SKIN + IMAGE_DIR
It is mutated to SKIN_DIR + '/' + SKIN + ICON_DIR
Copyright (c) 2006-2007 Viktor Kojouharov. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install IWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IWL
CPAN shell
perl -MCPAN -e shell install IWL
For more information on module installation, please visit the detailed CPAN module installation guide.