Subject: | Catalyst::View::TD->render appears to debless parameters |
If you call render with a blessed hash as the third parameter an
unblessed version of that hash is passed in to the template. I've
included a patch to fix this.
Subject: | td.patch |
137,149c137,146
< my $vars;
< if( defined $args and ref $args )
< {
< $vars = $args;
< }
< elsif( $c )
< {
< $vars = $c->stash;
< }
< else
< {
< $vars = ();
< }
---
> # The do prevents warnings when $args is undef.
> my $vars = { do {
> if (ref $args) {
> %{ $args }
> } elsif ($c) {
> %{ $c->stash }
> } else {
> ()
> }
> } };