]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Apache/MVC/View/TT.pm
General restructuring, and a delete method which doesn't quite work yet.
[maypole.git] / lib / Apache / MVC / View / TT.pm
index f1b005e8108ac5a37260cdf2a77874b4bd235b08..90624ad7960113098dcacd635dbfe6bddb9de647 100644 (file)
@@ -26,6 +26,8 @@ sub _args {
         request => $r,
         class   => $class,
         objects => $r->objects,
+        base    => $r->config->{uri_base},
+        config  => $r->config
         # ...
     );
     $args{classmetadata} = {
@@ -44,6 +46,9 @@ sub _args {
     } else {
         ($args{$r->model_class->moniker}) = @{$r->objects};
     }
+
+    # Overrides
+    %args = (%args, %{$r->{template_args}||{}});
     %args;
 }