Jifty::Plugin::TestServerWarnings::View - Downloads test warnings


Jifty documentation Contained in the Jifty distribution.

Index


Code Index:

NAME

Top

Jifty::Plugin::TestServerWarnings::View - Downloads test warnings

TEMPLATES

Top

__jifty/test_warnings

Outputs encoded_warnings in Jifty::Plugin::TestServerWarnings to the client.


Jifty documentation Contained in the Jifty distribution.

use strict;
use warnings;

package Jifty::Plugin::TestServerWarnings::View;
use Jifty::View::Declare -base;

template "/__jifty/test_warnings" => sub {
    my $plugin = Jifty->find_plugin('Jifty::Plugin::TestServerWarnings');
    Jifty->web->response->content_type("application/x-perl");
    outs_raw($plugin->encoded_warnings);
};

1;