Good morning,

On 20/6/07 at 2:55 PM -0700, Bill Moseley <[EMAIL PROTECTED]> wrote:

Doesn't really sound like your problem,
although it's a bit odd that adding a schema class would effect
how TT finds templates.

I would agree with that.  :-|

If you are getting a template not found error then maybe enabling
debugging in Template::Provider would help -- or just throw in a few
warn messages to see what paths it's looking for the template.

Would you mind giving some specifics. I added "DEBUG => '1'" to __PACKAGE__->config in my View::TT but I'm not seeing any extra debug info. I am using a mostly default setup for View::TT,

__PACKAGE__->config({
    CATALYST_VAR => 'Catalyst',
    INCLUDE_PATH => [
        RP->path_to( 'root', 'src' ),
        RP->path_to( 'root', 'lib' )
    ],
    PRE_PROCESS  => 'config/main',
    WRAPPER      => 'site/wrapper',
    ERROR        => 'error.tt2',
    TIMER        => 0,
    TEMPLATE_EXTENSION => '.tt2',
    DEBUG        => '1',
});

How do I enable debugging in Template::Provider? Following the man page, I also tried this:

use Template::Constants qw( :debug );
__PACKAGE__->config({
    ......
    DEBUG        => DEBUG_PROVIDER,
});

With that option I got this:

[Template::Provider] creating cache of unlimited slots for [ CODE(0x1d38890) ]

But no other debugging output that I could see.

Thanks,
Charlie

--
   Charlie Garrison  <[EMAIL PROTECTED]>
   PO Box 141, Windsor, NSW 2756, Australia

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
http://www.ietf.org/rfc/rfc1855.txt

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to