X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FHTML%2FElement%2FLibrary.pod;h=d3675e2809072b1c184c84431fbfe3c5c44e5ed3;hb=c978a62d4df31421ab1da8aab452d3e3c871d6a1;hp=909aa9ecefccf2f15a86ed00ae6cfa57a7b86120;hpb=271d5078dc10f92db0d9927bd84065a0b9a38397;p=html-element-library.git diff --git a/lib/HTML/Element/Library.pod b/lib/HTML/Element/Library.pod index 909aa9e..d3675e2 100644 --- a/lib/HTML/Element/Library.pod +++ b/lib/HTML/Element/Library.pod @@ -1106,7 +1106,7 @@ you manipulate a loltree programmatically. These could not be methods because if you bless a loltree, then HTML::Tree will barf. -=head3 HTML::Element::replace_node($lol, $node_label, $new_node) +=head3 HTML::Element::newchild($lol, $parent_label, @newchild) Given this initial loltree: @@ -1116,7 +1116,7 @@ This code: sub shopping_items { my @shopping_items = map { [ item => _ ] } qw(bread butter beans) ; - \@shopping_items; + @shopping_items; } my $new_lol = HTML::Element::newnode($initial_lol, item => shopping_items()); @@ -1128,7 +1128,7 @@ This code: 'note', [ 'shopping', - [ + [ 'item', 'bread' @@ -1141,7 +1141,7 @@ This code: 'item', 'beans' ] - ] + ] ]; @@ -1160,13 +1160,13 @@ A perl package for creating and manipulating HTML trees. An L - based module which allows for manipulation of HTML trees using cartesian coordinations. -=head2 * L +=head2 L An L - based module inspired by XMLC (L), allowing for dynamic HTML generation via tree rewriting. -=head2 Push-style tmeplating systems +=head2 Push-style templating systems A comprehensive cross-language L. @@ -1218,16 +1218,23 @@ down instead: =cut -=head1 SEE ALSO - -L -=head1 AUTHOR / SOURCE +=head1 AUTHOR and ACKS Terrence Brannon, Etbone@cpan.orgE +I appreciate the feedback from M. David Moussa Leo Keita regarding some issues with the +test suite, namely (1) CRLF leading to test breakage in F and (2) using the +wrong module in F thus not having the right functionality available. + Many thanks to BARBIE for his RT bug report. +Many thanks to perlmonk kcott for his work on array rewriting: +L. +It was crucial in the development of newchild. + +=head2 Source Repo + The source is at L =head1 COPYRIGHT AND LICENSE