Mailing List Archive

View::TT config ignores EVAL_PERL
When I set it like:

__PACKAGE__->config('
'View::TT' => {EVAL_PERL => 1});

EVAL_PERL seems to be ignored.
Is this a desired behavior?


--
Sincerely

Yuri Shtil



_______________________________________________
Catalyst-dev mailing list
Catalyst-dev@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
Re: View::TT config ignores EVAL_PERL [ In reply to ]
On Thu, Aug 07, 2008 at 05:07:06PM +0000, shtil@comcast.net wrote:
> When I set it like:

Is that in MyApp.pm ? If not you just want ->config(EVAL_PERL => 1);

> __PACKAGE__->config('
> 'View::TT' => {EVAL_PERL => 1});
>
> EVAL_PERL seems to be ignored.

The entire config is passed through to Template. Nothing's ignored.

If you can't get this working please send:

your View::TT subclass

your MyApp.pm

your config file

your startup debug log

--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/

_______________________________________________
Catalyst-dev mailing list
Catalyst-dev@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
Re: View::TT config ignores EVAL_PERL [ In reply to ]
-------------- Original message ----------------------
From: Matt S Trout <dbix-class@trout.me.uk>
> On Thu, Aug 07, 2008 at 05:07:06PM +0000, shtil@comcast.net wrote:
> > When I set it like:
>
> Is that in MyApp.pm ? If not you just want ->config(EVAL_PERL => 1);
>
> > __PACKAGE__->config('
> > 'View::TT' => {EVAL_PERL => 1});
> >
> > EVAL_PERL seems to be ignored.
>
> The entire config is passed through to Template. Nothing's ignored.
>
> If you can't get this working please send:
>
> your View::TT subclass
>
> your MyApp.pm
>
> your config file
>
> your startup debug log
>
> --
> Matt S Trout Need help with your Catalyst or DBIx::Class project?
> Technical Director http://www.shadowcat.co.uk/catalyst/
> Shadowcat Systems Ltd. Want a managed development or deployment platform?
> http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev@lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev

I finally got around to this:

my View::TT subclass attached as Template.pm
MyApp.pm attached as Maelstrom.pm
I have no config file.
The debug log attached as debug.log
Re: View::TT config ignores EVAL_PERL [ In reply to ]
-------------- Original message ----------------------
From: Matt S Trout <dbix-class@trout.me.uk>
> On Thu, Aug 07, 2008 at 05:07:06PM +0000, shtil@comcast.net wrote:
> > When I set it like:
>
> Is that in MyApp.pm ? If not you just want ->config(EVAL_PERL => 1);
>
> > __PACKAGE__->config('
> > 'View::TT' => {EVAL_PERL => 1});
> >
> > EVAL_PERL seems to be ignored.
>
> The entire config is passed through to Template. Nothing's ignored.
>
> If you can't get this working please send:
>
> your View::TT subclass
>
> your MyApp.pm
>
> your config file
>
> your startup debug log
>
> --
> Matt S Trout Need help with your Catalyst or DBIx::Class project?
> Technical Director http://www.shadowcat.co.uk/catalyst/
> Shadowcat Systems Ltd. Want a managed development or deployment platform?
> http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev@lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev

I finally got around to this:

my View::TT subclass attached as Template.pm
MyApp.pm attached as Maelstrom.pm
I have no config file.
The debug log attached as debug.log
Re: View::TT config ignores EVAL_PERL [ In reply to ]
On Wed, Aug 27, 2008 at 03:55:23PM +0000, shtil@comcast.net wrote:
> > Is that in MyApp.pm ? If not you just want ->config(EVAL_PERL => 1);
> >
> > > __PACKAGE__->config('
> > > 'View::TT' => {EVAL_PERL => 1});
> > >
> > > EVAL_PERL seems to be ignored.
>
> I finally got around to this:
>
> my View::TT subclass attached as Template.pm

the 'View::TT' config key configures MyApp::View::TT.

Your view is called MyApp::View::Template.

Please rename one.

--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/

_______________________________________________
Catalyst-dev mailing list
Catalyst-dev@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev