[Catalyst-commits] r6377 -
trunk/Catalyst-Engine-Wx/lib/Catalyst/View
eriam at dev.catalyst.perl.org
eriam at dev.catalyst.perl.org
Tue May 8 20:11:38 GMT 2007
Author: eriam
Date: 2007-05-08 20:11:38 +0100 (Tue, 08 May 2007)
New Revision: 6377
Modified:
trunk/Catalyst-Engine-Wx/lib/Catalyst/View/Wx.pm
Log:
Deals with stash template to be able to specify a different module.
Modified: trunk/Catalyst-Engine-Wx/lib/Catalyst/View/Wx.pm
===================================================================
--- trunk/Catalyst-Engine-Wx/lib/Catalyst/View/Wx.pm 2007-05-08 19:10:21 UTC (rev 6376)
+++ trunk/Catalyst-Engine-Wx/lib/Catalyst/View/Wx.pm 2007-05-08 19:11:38 UTC (rev 6377)
@@ -35,7 +35,7 @@
sub process {
my ($self, $c) = @_;
- my $module = $c->action;
+ my $module = $c->stash->{template} || $c->action;
$module =~ s/\//::/g;
if (defined $self->config->{NAMESPACE}) {
@@ -50,7 +50,7 @@
$code->($module, @_);
}
- $c->stash->{_displayed} = 1;
+# $c->stash->{_displayed} = 1;
return 1;
}
More information about the Catalyst-commits
mailing list