Commit 16cb5693 authored by Christophe Maudoux's avatar Christophe Maudoux

WIP - Load default template if does not exist (#1653)

parent 9679a671
......@@ -242,6 +242,9 @@ sub sendHtml {
$args{headers} ||= $req->respHeaders || [];
my $htpl;
$template = ( $args{templateDir} // $self->templateDir ) . "/$template.tpl";
unless (-f $template){
$template = $self->templateDir . "/bootstrap/$template.tpl";
}
return $self->sendError( $req, "Unable to read $template", 500 )
unless ( -r $template and -f $template );
eval {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment