File: Simple.pm

package info (click to toggle)
libtemplate-perl 3.102-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,680 kB
  • sloc: perl: 14,945; makefile: 11; sh: 5
file content (17 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package Template::Plugin::Simple;
use base 'Template::Plugin::Filter';

sub init {
    my $self = shift;
    $self->{ _DYNAMIC } = 1;
    my $name = $self->{ _CONFIG }->{ name } || 'simple';
    $self->install_filter($name);
    return $self;
}

sub filter {
    my ($self, $text, $args, $conf) = @_;
    return '**' . $text . '**';
}

1;