File: Simple.pm

package info (click to toggle)
libtemplate-perl 2.24-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,660 kB
  • sloc: perl: 14,518; makefile: 15; sh: 5
file content (17 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (4)
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;