Created
January 10, 2011 11:02
-
-
Save jnareb/772641 to your computer and use it in GitHub Desktop.
fixed snippet from HTML::Zoom manpage (proposal)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sub code_stream (&) { | |
| my $code = shift; | |
| return sub { | |
| HTML::Zoom::CodeStream->new({ | |
| code => $code, | |
| }); | |
| } | |
| } | |
| $zoom->select('.item')->repeat(code_stream { | |
| if (my $name = shift @list) { | |
| return sub { $_->select('.item-name')->replace_content($name) } | |
| } else { | |
| return | |
| } | |
| }, { flush_before => $flush }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment