projects
/
catagits/HTML-Zoom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
c2d0669
)
fill method
John Napiorkowski [Tue, 29 Mar 2011 01:26:27 +0000 (21:26 -0400)]
lib/HTML/Zoom.pm
patch
|
blob
|
blame
|
history
t/dwim-autoload.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/HTML/Zoom.pm
b/lib/HTML/Zoom.pm
index
6420a0b
..
3dee0b7
100644
(file)
--- a/
lib/HTML/Zoom.pm
+++ b/
lib/HTML/Zoom.pm
@@
-226,7
+226,7
@@
sub fill {
->template($layout) ## is a wrap object of some sort
->match('title')
->match('body')
- ->...
+ ->apply
## ^^ would be similar to:
diff --git
a/t/dwim-autoload.t
b/t/dwim-autoload.t
index
1149b22
..
76a89a7
100644
(file)
--- a/
t/dwim-autoload.t
+++ b/
t/dwim-autoload.t
@@
-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;