| Next: Text::Wigwam::Globals | Previous: Text::Wigwam | [Table of Contents] | [Text::Wigwam Index] |
Text::Wigwam::Config - This module manages the configuration tag settings
All supported options classes must be specified during the construction
phase. This is done by calling the new method with a list of class names
each followed by the desired preset parameters in the form of a hash
reference, or undef if no such parameters are required. References to
class names that were not declared during object construction will be
quietly ignored by all object methods.
my $Config = Text::Wigwam::Config->new(
class1 => { parm => 1 },
class2 => { parm => 2 },
class3 => undef,
)
inherit( class1, class2, ... )
inherit method is used to set user-specified parameters for each class.
$Config->inherit (
class1 => \%class_1_parms,
class2 => \%class_2_parms,
class3 => \%class_3_parms,
)
confine( class1, class2, ... )
concede( class1, class2, ... )
promote( class1, class2, ... )
exclude ( class1 class2, ... )
crank( class1, class2, ... )
cache( name, class1, class2, ... )
If only one parameter is passed to the cache method, that parameter is used both as the name and class. The following examples are virtually identical:
$Config->cache qw( name ) $Config->cache( name => qw( name ) )
parse_config( template, open_tag, term_tag )
$template = $Config->parse_config( $template, '<<', '>>' )
spawn
my $child = $Config->spawn $child->parse_config( $child_template )