projects
/
catagits/Reaction.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
586b1b0
)
count code
matthewt [Mon, 18 Feb 2008 18:28:34 +0000 (18:28 +0000)]
lib/Reaction/UI/RenderingContext/TT.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Reaction/UI/RenderingContext/TT.pm
b/lib/Reaction/UI/RenderingContext/TT.pm
index
b359747
..
c69fe18
100644
(file)
--- a/
lib/Reaction/UI/RenderingContext/TT.pm
+++ b/
lib/Reaction/UI/RenderingContext/TT.pm
@@
-27,8
+27,10
@@
class TT is RenderingContext, which {
my ($widget, $fname, $over) = @to;
#warn "@to";
if (defined $over) {
+ my $count = 0;
$over->each(sub {
local $args_copy{_} = $_[0];
+ local $args_copy{count} = ++$count;
$body .= $widget->render($fname, $self, \%args_copy);
});
} else {