File: Bar.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 (18 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package MyPlugs::Bar;

use Template::Plugin;
use base qw( Template::Plugin );

sub new {
    my ($class, $context, $value) = @_;
    bless {
	VALUE => $value,
    }, $class;
}

sub output {
    my $self = shift;
    return "This is the Bar plugin, value is $self->{ VALUE }";
}

1;