Hey Marty:
Thanks for the quick response to what may be a dumb request.
Here is my configuration information from Catalyst::View::TT.
__PACKAGE__->config(
TEMPLATE_EXTENSION => '.tt',
WRAPPER => ['pagewrap_simple.tt'],
INCLUDE_PATH => [
'/vt/apache/htdocs/templates',
MGA->path_to( 'templates' ),
],
render_die => 1,
);
In this case the WRAPPER attribute points to a a TT file that contains HTML code for the header and footer of each page within my site. As I understand it Catalyst processes the template at the beginning of each request. In this case, I have a very simple wrapper file that contains all the HTML for the site's navigation.
Perhaps this exceeds the intent for your application. Personally, I like TT better than PHP for styling HTML. Still, I'm interested in using PHP as a templating system as I work with so many designers and coders who work in PHP.
Thanks again for your work and your response.
Mark
Show quoted text-----Original Message-----
From: Marty O'Brien via RT [mailto:bug-Catalyst-View-Template-PHP@rt.cpan.org]
Sent: Friday, September 12, 2014 3:02 PM
To: mdwestie@gmail.com
Subject: Re: [rt.cpan.org #98814] Feature Question
<URL:
https://rt.cpan.org/Ticket/Display.html?id=98814 >
Hi Mark,
I'm not sure I understand your request. Perhaps you could give an example of what code that used this feature would look like? Or at least a pointer to some Template Toolkit sample code that shows how this wrapper attribute is used?
Thanks,
Marty O'Brien
mob@cpan.org
On Thu, Sep 11, 2014 at 5:20 PM, Mark West via RT < bug-Catalyst-View-Template-PHP@rt.cpan.org> wrote:
> Thu Sep 11 20:20:08 2014: Request 98814 was acted upon.
> Transaction: Ticket created by mdwestie@gmail.com
> Queue: Catalyst-View-Template-PHP
> Subject: Feature Question
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: mdwestie@gmail.com
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=98814 >
>
>
> Hello,
>
> Are there plans to allow for a "wrapper" attribute as with the
> standard Template Toolkit Views?
>
> I don't see anything in the documentation or the code.
>
> Thanks for your work on this module.
>
> Mark
>
>