% if($ENV{TAP_VERSION}) {
  Exception! See the logs!
% }
% elsif(app->mode eq 'development') {
% #TODO: take a look and fix endless loop when same template name is included
%=   include 'development';
% } 
% else {
  <body>
    <h1>500 Internal Server Error!</h1>
  </body>
% }