File: SomePlugin2.pm

package info (click to toggle)
libmojolicious-perl 2.98%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,968 kB
  • sloc: perl: 10,178; sh: 48; makefile: 8
file content (13 lines) | stat: -rw-r--r-- 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
package MojoliciousTest::Plugin::Test::SomePlugin2;
use Mojo::Base 'Mojolicious::Plugin';

# "Space: It seems to go on and on forever...
#  but then you get to the end and a gorilla starts throwing barrels at you."
sub register {
  my ($self, $app) = @_;

  # Add "some_plugin" helper
  $app->helper(some_plugin => sub {'Welcome aboard!'});
}

1;