[Catalyst] INCLUDE_PATH and TT
Matt S Trout
dbix-class at trout.me.uk
Wed Apr 12 15:29:20 CEST 2006
Jean-Michel Caricand wrote:
>> 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?
>
> Yes, it exists.
I'd dump out the TT object and see if you can figure it out from there then. I
wonder if something in the local config (i.e. directly in MyApp::View::TT) is
overriding it.
--
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