You're misread what I put where?

It clearly states....

Edit lib/MyApp/View/ and you should see something similar to the 

        TEMPLATE_EXTENSION => '.tt',
        render_die => 1,

And that's where I put the extension setting?

-----Original Message-----
From: Tomas Doran []
Sent: 30 October 2012 23:12
To: The elegant MVC web framework
Subject: Re: [Catalyst] Can't get view / template to work ?

On 30 Oct 2012, at 23:06, David Schmidt wrote:

> On 31 October 2012 00:00, Tomas Doran <> wrote:
>> On 30 Oct 2012, at 16:52, Craig Chant wrote:
>>> I seem stuck with implementing my first view / template.
>>> I have a controller
>>> I ran the view helper script 'create view HTML HTML::template'
>> This can't possibly have worked? You mean create view HTML HTML::Template 
>> right?
>>> As per the tutorial I've added the following to the config section of 
>>>    TEMPLATE_EXTENSION => '.tp',
>> This needs to be inside the following block
>>>    'View::HTML' => {
>>>            #Set the location for templates files
>>>            INCLUDE_PATH => [
>>>                __PACKAGE__->path_to( 'root', 'src' ),
>>>            ],
>>>        },
> C::M::Tutorial says otherwise

Sorry, but you're wrong.

The tutorial says:

"Edit lib/MyApp/View/ and you should see something similar to the 

The OP says: "As per the tutorial I've added the following to the config 
section of"

So, the OP has done something totally different to what the tutorial says, and 
thus it will behave differently.

If he moves that line to inside the View (as the tutorial suggests), it'll work.

If he moves it to inside the 'View::HTML' block in, thus namespacing 
it into the appropriate component, it'll work.

Where it is right now - it will be ignored.


Searchable archive:
Dev site:
This Email and any attachments contain confidential information and is intended 
solely for the individual to whom it is addressed. If this Email has been 
misdirected, please notify the author as soon as possible. If you are not the 
intended recipient you must not disclose, distribute, copy, print or rely on 
any of the information contained, and all copies must be deleted immediately. 
Whilst we take reasonable steps to try to identify any software viruses, any 
attachments to this e-mail may nevertheless contain viruses, which our 
anti-virus software has failed to identify. You should therefore carry out your 
own anti-virus checks before opening any documents. HomeLoan Partnership will 
not accept any liability for damage caused by computer viruses emanating from 
any attachment or other document supplied with this e-mail. HomeLoan 
Partnership reserves the right to monitor and archive all e-mail communications 
through its network. No representative or employee of HomeLoan Partnership has 
the authority to enter into any contract on behalf of HomeLoan Partnership by 
email. HomeLoan Partnership is a trading name of H L Partnership Limited, 
registered in England and Wales with Registration Number 5011722. Registered 
office: 26-34 Old Street, London, EC1V 9QQ. H L Partnership Limited is 
authorised and regulated by the Financial Services Authority.

Searchable archive:
Dev site:

Reply via email to