fill method
John Napiorkowski [Tue, 29 Mar 2011 01:26:27 +0000 (21:26 -0400)]
lib/HTML/Zoom.pm
t/dwim-autoload.t

index 6420a0b..3dee0b7 100644 (file)
@@ -226,7 +226,7 @@ sub fill {
       ->template($layout)  ## is a wrap object of some sort
       ->match('title')
       ->match('body')
-      ->...
+      ->apply
 
     ## ^^ would be similar to:
 
index 1149b22..76a89a7 100644 (file)
@@ -47,7 +47,7 @@ ok my $html = $zoom
   ->fill('.items' => [
         sub { $_->select('li')->replace_content("XXX")},
         sub { $_->select('li')->replace_content("YYY")},
-        sub { $_->select('li')->replace_content("ZZZ")},
+        sub { $_->select('li')->replace_content("ZZZ", "000")},
   ])
   ->to_html;