]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Apache/MVC/View/TT.pm
Allow template_args to add to and override template aguments.
[maypole.git] / lib / Apache / MVC / View / TT.pm
index 368c3ecc330546b01b42466788825ade02f16ddd..e2a15046cef24e59743a7b9defc258b16f50132d 100644 (file)
@@ -45,6 +45,9 @@ sub _args {
     } else {
         ($args{$r->model_class->moniker}) = @{$r->objects};
     }
+
+    # Overrides
+    %args = (%args, %{$r->{template_args}||{}});
     %args;
 }