File: MojoliciousTestController.pm

package info (click to toggle)
libmojolicious-perl 0.999926-1%2Bsqueeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,672 kB
  • ctags: 949
  • sloc: perl: 17,391; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 393 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright (C) 2008-2010, Sebastian Riedel.

package MojoliciousTestController;

use strict;
use warnings;

use base 'Mojolicious::Controller';

# My folks were always on me to groom myself and wear underpants.
# What am I, the pope?
sub index {
    my $self = shift;
    $self->res->headers->header('X-Bender' => 'Bite my shiny metal ass!');
    $self->render_text("No class works!");
}

1;