« auto/share/dist/Rhetoric/widgets/sidebar/cleanup.pl
↑ Summary
auto/share/dist/Rhetoric/widgets/sidebar/init.pl »
| 1 | use common::sense; | ||
| 2 | use File::Basename; | ||
| 3 | |||
| 4 | sub { | ||
| 5 | my ($self, @args) = @_; | ||
| 6 | my $tt = $self->env->{tt}; | ||
| 7 | my $template; | ||
| 8 | my ($file, $dir, $suffix) = fileparse(__FILE__, '.pl'); | ||
| 9 | $template = $file; | ||
| 10 | $template =~ s/\d+_//; | ||
| 11 | $template .= ".html"; | ||
| 12 | my $out; | ||
| 13 | $tt->process($template, $self->v, \$out); | ||
| 14 | $out; | ||
| 15 | } |