Hello list,

I just started playing around with Catalyst and I have a question concerning 
where to put __PACKAGE__->config() if I want to customize Template Toolkits 
INCLUDE_PATH.

On Catalyst::Manual::Tutorial I read:
 __PACKAGE__->config( name => 'tutorial',
                      'View::TToolkit' => {
                          'INCLUDE_PATH' => __PACKAGE__->path_to('templates')
     }
  );

This is what I did, but I always get a "couldn't render /template not found 
error. If I put this directive in tutorial::View::TToolkit it works.

The strangest thing about it is: on WindowsNT, where I started using Catalyst 
(ActivePerl, Catalyst 5.61) it worked when placed in tutorial.pm, under SuSE 
9.0 it crashes with the message mentioned above (Catalyst 5.61). The code 
mimicks exactly that of Catalyst::Manual::Tutorial in both cases.

What I've been doing wrong?
 
Ralf Ullrich


______________________
Ralf Ullrich, M.A.
Virtuelle Fachbibliothek
Ibero-Amerikanisches Institut
Preußischer Kulturbesitz
Potsdamer Str. 37                       
D-10785 Berlin
Germany                         
Phone: +49 +30 266-2512
Fax: +49 +30 266-2503
E-Mail: [EMAIL PROTECTED]
http://www.iai.spk-berlin.de
______________________



_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to