Permalink
Browse files

testing README.pod formatting take 7

  • Loading branch information...
1 parent b0cda34 commit 5fabf3208e71fcf6f2fecbd9732e1db3fa2f1714 @draegtun committed Dec 1, 2009
Showing with 3 additions and 5 deletions.
  1. +3 −5 README.pod
View
@@ -19,21 +19,19 @@ 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' );
-
- # example 1
-
+=head3 example 1
$xm->parent( { isa => 'Mother' }, $xm->child( 'Hi Mum!' ) );
say $builder->render;
# <parent isa="Mother"><child>Hi Mum!</child></parent>
- # example 2
-
+=head3 example 2
$xm->parent( sub {
for my $say qw/Mum Dad/ {
$xm->child( "Hi $say" );

0 comments on commit 5fabf32

Please sign in to comment.