File: UPPERCASETestPlugin.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-- 346 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
package MojoliciousTest::Plugin::UPPERCASETestPlugin;
use Mojo::Base 'Mojolicious::Plugin';

# "I hate these nerds.
#  Just because I'm stupider than them they think they're smarter than me."
sub register {
  my ($self, $app) = @_;

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

1;