X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FView%2FTT.pm;h=7a2ab0307501e6da5fe6281b2c17ece946966b37;hb=a183ff6bda2ae98ef8f4a4f979647052e0020dea;hp=7106b7a563f0d5593fdbe3860752aa488b1b575f;hpb=28823167d12d4cd1419cc6a58900c0fc5819e1af;p=maypole.git diff --git a/lib/Maypole/View/TT.pm b/lib/Maypole/View/TT.pm index 7106b7a..7a2ab03 100644 --- a/lib/Maypole/View/TT.pm +++ b/lib/Maypole/View/TT.pm @@ -32,8 +32,7 @@ sub template { if ($self->{tt}->process($template_file, { $self->vars($r) }, \$output )) { $r->{output} = $output; return OK; - } - else { + } else { $r->{error} = "TT error for template '$template_file'\n" . $self->{tt}->error; return ERROR; } @@ -103,6 +102,10 @@ options. Processes the template and sets the output. See L +=item report_error + +Reports the details of an error, current state and parameters + =back =head1 TEMPLATE TOOLKIT INTRODUCTION