151 |
return $html; |
return $html; |
152 |
} |
} |
153 |
|
|
154 |
|
sub codeswarm_as_markup { |
155 |
|
my ($self) = @_; |
156 |
|
|
157 |
|
$self->content_type('text/xml'); |
158 |
|
|
159 |
|
my $file_events = ''; |
160 |
|
|
161 |
|
$self->iterator( sub { |
162 |
|
my $e = shift; |
163 |
|
|
164 |
|
my $rev = $e->{'revision'}; |
165 |
|
my $date = $e->{'date'}; |
166 |
|
my $author = $e->{'author'}; |
167 |
|
|
168 |
|
foreach my $p (@{$e->{'paths'}->{'path'}}) { |
169 |
|
my ($action,$path) = ($p->{'action'},$p->{'content'}); |
170 |
|
$file_events .= qq|\t<event filename="$path" date="$date" author="$author" />\n|; |
171 |
|
} |
172 |
|
|
173 |
|
}); |
174 |
|
|
175 |
|
return qq|<?xml version="1.0"?> |
176 |
|
<!-- One commit per day for one month by a documenter and programmer. --> |
177 |
|
<file_events> |
178 |
|
$file_events |
179 |
|
</file_events> |
180 |
|
|; |
181 |
|
|
182 |
|
} |
183 |
|
|
184 |
1; |
1; |