« auto/share/dist/Rhetoric/widgets/sidebar/content.pl
↑ Summary
auto/share/dist/Rhetoric/widgets/sidebar/search.pl »
| 1 | use common::sense; | ||
| 2 | use Template; | ||
| 3 | use File::Basename; | ||
| 4 | |||
| 5 | # initialize some objects for the rest of the widgets to use | ||
| 6 | sub { | ||
| 7 | my ($self) = @_; | ||
| 8 | my $tt = Template->new({ POST_CHOMP => 1, INCLUDE_PATH => [ dirname(__FILE__) ] }); | ||
| 9 | $self->env->{tt} = $tt; | ||
| 10 | undef; | ||
| 11 | # returning undef means this widget is invisible | ||
| 12 | } |