>
> 1.) app wide exception and not found templates / messages especially 
>> useful for json apps
>>
>
> Any concrete proposals?
>

May be in the application?

sub startup {
...
}

sub render_exception

sub render_not_found


or something like

 my $r = $self->routes();

 $r->set_render_not_found(\&mysub);
 $r->set_render_exception(\&mysub);

 my $json = $r->get('/json')->to('json#abc');
 $json->set_render_not_found(\&mysub_json);
 $json->set_render_exception(\&mysub_json);


Stefan 

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to