package Perl6::Pod::Directive::config; =pod =head1 NAME Perl6::Pod::Directive::config - handle =config directive =head1 SYNOPSIS Block pre-configuration =config head1 :numbered =config head2 :like :formatted Pre-configuring formatting codes =config V<> :allow =config C<> :formatted =head1 DESCRIPTION Perl6::Pod::Directive::config - handle =config directive The =config directive allows you to prespecify standard configuration information that is applied to every block of a particular type. =config BLOCK_TYPE CONFIG OPTIONS = OPTIONAL EXTRA CONFIG OPTIONS =cut use warnings; use strict; use Perl6::Pod::Block; use base 'Perl6::Pod::Block'; our $VERSION = '0.01'; sub new { my ( $class, %args ) = @_; my $self = $class->SUPER::new(%args); my $block_name = $self->{block_name}; my $attr = $self->get_attr; my $context = $self->context; $context->config->{$block_name} = $attr; return undef; } 1; __END__ =head1 SEE ALSO L, Perldoc Pod to HTML converter: L, Perl6::Pod::Lib =head1 AUTHOR Zahatski Aliaksandr, =head1 COPYRIGHT AND LICENSE Copyright (C) 2009-2015 by Zahatski Aliaksandr This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. =cut