[Catalyst] INCLUDE_PATH and TT

Matt S Trout dbix-class at trout.me.uk
Wed Apr 12 14:35:09 CEST 2006


Jean-Michel Caricand wrote:
> Hi alls,
> 
> I'm new in Catalyst and I'm happy because it's a very good
> framework. Actually, I test Catalyst on a small project. All
> works fine but I have a problem with INCLUDE_PATH. This is my
> code :
> 
> Intranet->config(
>   name => 'Intranet',
>   root => Intranet->path_to('root'),
>   'View::TT' => {
>      # any TT configurations items go here
>      INCLUDE_PATH => [ Intranet->path_to('root'),
>      '/usr/local/tt2/template', ],
>      WRAPPER => 'wrapper.tt',
>      EVAL_PERL => 1
>   }
> );
> 
> I want to use splash library. In my index.tt, I have :
> 
> [% WRAPPER splash/tab width = '20%' %]
> My tab
> [% END %]
> 
> When I test my page, Catalyst send me this message :
> 
> Couldn't render template "file error - splash/tab: not found"
> 
> Do you know why ?

Does /usr/local/tt2/template/splash/tab exist?

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list