Permalink
Browse files

testing README.pod formatting take 8

  • Loading branch information...
1 parent 5fabf32 commit e818b9658ec2adebfd5214261b166e5619cb6586 @draegtun committed Dec 1, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.pod
View
@@ -20,18 +20,20 @@ This distribution includes the following modules:
Using building blocks to render XML, CSS, HTML and other outputs.
=head3 boilerplate
+
use Builder;
my $builder = Builder->new;
my $xm = $builder->block( 'Builder::XML' );
=head3 example 1
+
$xm->parent( { isa => 'Mother' }, $xm->child( 'Hi Mum!' ) );
say $builder->render;
# <parent isa="Mother"><child>Hi Mum!</child></parent>
-
=head3 example 2
+
$xm->parent( sub {
for my $say qw/Mum Dad/ {
$xm->child( "Hi $say" );

0 comments on commit e818b96

Please sign in to comment.