X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FView%2FTT.pm;fp=lib%2FMaypole%2FView%2FTT.pm;h=f634ca8fedb7604ef9d97af249bcfc738f746bd7;hb=29550a30ca082a8f1f1d0cb1b4a92eb39bc3dd84;hp=c399a6f69b5ffb5afffc41608d62b6b765e5b0a7;hpb=133896a3775b59c73bd8b4bd91cb37fac1743f21;p=maypole.git
diff --git a/lib/Maypole/View/TT.pm b/lib/Maypole/View/TT.pm
index c399a6f..f634ca8 100644
--- a/lib/Maypole/View/TT.pm
+++ b/lib/Maypole/View/TT.pm
@@ -58,8 +58,8 @@ sub report_error {
}
if ($tt->process(\$error_template,
{ err_type => $type, error => $error,
- config => { (%{$r->{config}}) },
- request => $r, # We have that at least
+ config => $r->{config},
+ request => $r,
eval{$self->vars($r)} }, \$output )) {
$r->{output} = $output;
if ($tt->error) { $r->{output} = "
Even the error template
@@ -399,19 +399,19 @@ the path "[% request.path %]". The error text returned was:
Request details
-
- [% FOR thing = ["model_class", "table", "template", "path",
+
+ [% FOR attribute = ["model_class", "table", "template", "path",
"content_type", "document_encoding", "action", "args", "objects"] %]
- [%thing %] | [%
- request.$thing.list.join(" , ") %] |
+ [% attribute %] | [%
+ request.$attribute.list.join(" , ") %] |
[% END %]
Application configuration
-
- [% FOR thing = config.keys %]
- [%thing %] | [%
- config.$thing.list.join(" , ") %] |
+
+ [% FOR field IN config %]
+ [% field.key %] | [%
+ $field.value.list.join(" , ") %] |
[% END %]