Marquee Marquee::ErrorDocument - ErrorDocument

TABLE OF CONTENTS

NAME

Marquee::ErrorDocument - ErrorDocument

SYNOPSIS

my $error_doc = Marquee::ErrorDocument->new;
$error_doc->render(404, 'File not found');

DESCRIPTION

Marquee::ErrorDocument represents error document.

ATTRIBUTES

Marquee::ErrorDocument implements the following attributes.

template

$error_doc->template('/path/to/template.html.ep');

status_template

$error_doc->status_template->{404} = '/path/to/template.html.ep';

INSTANCE METHODS

Marquee::ErrorDocument implements the following instance methods.

serve

Serves error document.

$error_doc->serve(404);
$error_doc->serve(404, 'File not found');

SEE ALSO

Marquee, Mojolicious