[Catalyst] Can't get view / template to work ?

Alexander Hartmaier alexander.hartmaier at t-systems.at
Wed Oct 31 12:32:30 GMT 2012


On 2012-10-31 13:28, Will Crawford wrote:
> On 31 October 2012 09:31, Craig Chant <craig at homeloanpartnership.com> wrote:
>> You're misread what I put where?
>>
>> It clearly states....
>>
>> Edit lib/MyApp/View/HTML.pm and you should see something similar to the following:
>>
>>     __PACKAGE__->config(
>>         TEMPLATE_EXTENSION => '.tt',
>>         render_die => 1,
>>     );
>>
>>
>> And that's where I put the extension setting?
> Yet you claimed in your first message in this thread, to have added:
>
>     TEMPLATE_EXTENSION => '.tp',
>     'View::HTML' => {
>             #Set the location for templates files
>             INCLUDE_PATH => [
>                 __PACKAGE__->path_to( 'root', 'src' ),
>             ],
>         },
>
> "... to the config section of MyApp.pm", and you're being told that's wrong.
Guys, Craig is on IRC now and I'm helping him to resolve the issue.
He is using Catalyst::View::HTML::Template not ::TT so the options are
different.
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/



*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*



More information about the Catalyst mailing list