Skip to content

Commit

Permalink
testing README.pod formatting take 7
Browse files Browse the repository at this point in the history
  • Loading branch information
draegtun committed Dec 1, 2009
1 parent b0cda34 commit 5fabf32
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.pod
Expand Up @@ -19,21 +19,19 @@ This distribution includes the following modules:


Using building blocks to render XML, CSS, HTML and other outputs. Using building blocks to render XML, CSS, HTML and other outputs.


=head3 boilerplate
use Builder; use Builder;
my $builder = Builder->new; my $builder = Builder->new;
my $xm = $builder->block( 'Builder::XML' ); my $xm = $builder->block( 'Builder::XML' );



=head3 example 1
# example 1

$xm->parent( { isa => 'Mother' }, $xm->child( 'Hi Mum!' ) ); $xm->parent( { isa => 'Mother' }, $xm->child( 'Hi Mum!' ) );
say $builder->render; say $builder->render;


# <parent isa="Mother"><child>Hi Mum!</child></parent> # <parent isa="Mother"><child>Hi Mum!</child></parent>




# example 2 =head3 example 2

$xm->parent( sub { $xm->parent( sub {
for my $say qw/Mum Dad/ { for my $say qw/Mum Dad/ {
$xm->child( "Hi $say" ); $xm->child( "Hi $say" );
Expand Down

0 comments on commit 5fabf32

Please sign in to comment.