]> git.decadent.org.uk Git - maypole.git/commitdiff
Allow template_args to add to and override template aguments.
authorSimon Cozens <simon@simon-cozens.org>
Sat, 24 Jan 2004 17:59:23 +0000 (17:59 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Sat, 24 Jan 2004 17:59:23 +0000 (17:59 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@14 48953598-375a-da11-a14b-00016c27c3ee

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;
 }