xiaoyafeng has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
I'm new to Catalyst and intend to write a website in it. Now what I am stuck is I want to use one wrapper for some templates, and the other one for some other templates. But as Catalyst tutorial, I'm just able to define only one wrapper like this:
__PACKAGE__->config( # Change default TT extension TEMPLATE_EXTENSION => '.tt2', # Set the location for TT files INCLUDE_PATH => [ MyApp->path_to( 'root', 'src' ), ], # Set to 1 for detailed timer stats in your HTML as comments TIMER => 0, # This is your wrapper template located in the 'root/src' WRAPPER => 'wrapper.tt2', );
Any thoughts are appreciated!
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Catalyst WRAPPER
by Anonymous Monk on Jun 06, 2010 at 06:52 UTC | |
by Anonymous Monk on Jun 07, 2010 at 05:43 UTC | |
by Your Mother (Archbishop) on Jun 07, 2010 at 18:22 UTC | |
by Anonymous Monk on Jun 07, 2010 at 06:56 UTC |