#=============================================================================== # # DESCRIPTION: replaceable item # # AUTHOR: Aliaksandr P. Zahatski, #=============================================================================== package Perl6::Pod::FormattingCode::R; =pod =head1 NAME Perl6::Pod::FormattingCode::R - Replaceable item =head1 SYNOPSIS Then enter your details at the prompt: =for input Name: B> ID: B> Pass: B> =head1 DESCRIPTION The CE> formatting code specifies that the contained text is a B, a placeholder, or a metasyntactic variable. It is used to indicate a component of a syntax or specification that should eventually be replaced by an actual value. For example: The basic C command is: C R R or: Then enter your details at the prompt: =for input Name: R ID: R Pass: R Typically replaceables would be rendered in fixed-width italics or with C< EvarE...E/varE > tags. The font used should be the same as that used for the CE> code, unless the CE> is inside a CE> or CE> code (or the equivalent C<=input> or C<=output> blocks), in which case their respective fonts should be used. =cut use warnings; use strict; use Perl6::Pod::FormattingCode; use base 'Perl6::Pod::FormattingCode'; use Perl6::Pod::Utl; our $VERSION = '0.01'; =head2 to_xhtml Name: R Render xhtml: Name: your surname =cut sub to_xhtml { my ( $self, $to ) = @_; $to->w->raw(''); $to->visit( Perl6::Pod::Utl::parse_para($self->{content}->[0]) ); $to->w->raw(''); } =head2 to_docbook Name: R Render to Name: your surname L =cut sub to_docbook { my ( $self, $to ) = @_; $to->w->raw(''); $to->visit( Perl6::Pod::Utl::parse_para($self->{content}->[0]) ); $to->w->raw(''); } 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