[Catalyst] How use two wrapper?

Xiao Yafeng xyf.xiao at gmail.com
Sun Jun 6 04:41:51 GMT 2010


Hi,
      I'm new to Catalyst. I'd like to use one wrapper to some templates,
the other wrapper to some other templates. But as
Catalyst;:Manual::Tutorial,

I can only define one wrapper like this:
                    __PACKAGE__->config(

        # Change default TT extension
        TEMPLATE_EXTENSION =3D> '.tt2',
        # Set the location for TT files
        INCLUDE_PATH =3D> [
                MyApp->path_to( 'root', 'src' ),
            ],
        # Set to 1 for detailed timer stats in your HTML as comments
        TIMER              =3D> 0,
        # This is your wrapper template located in the 'root/src'
        WRAPPER =3D> 'wrapper.tt2',
    );

Thanks In advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100606/13732=
2b6/attachment.htm


More information about the Catalyst mailing list