Re: [Templates] Passing params

[prev] [thread] [next] [Date index for 2004/11/09]

From: Drew Taylor
Subject: Re: [Templates] Passing params
Date: 22:16 on 09 Nov 2004
On Tue, 09 Nov 2004 16:48:59 -0500, Perrin Harkins <perrin@xxxx.xxx> wrote:
> On Tue, 2004-11-09 at 15:30, Robert wrote:
> > I am coming from the CGI-Application camp where I would define a param and
> > pass that as the page to process. I would like to do the same in TT. I would
> > like to have one "main" cgi script that reads the ?pid=something and
> > processes those vars.
> 
> Okay.  Are you having trouble doing that?  People do use TT with
> CGI::Application.
> 
> > Another thought would be, is that a good way to do things in TT?
> 
> Yes.  You can use TT in exactly the same way you would use
> HTML::Template with CGI::App.

Checkout CGI::Application::Plugin::TT for a super easy way to use TT
within CGI::App. I'm currently using it on a personal site with great
success.
http://search.cpan.org/~ceeshek/CGI-Application-Plugin-TT-0.03/

Drew
        -- 
        ----------------------------------------------------------------
 Drew Taylor                 *  Web development & consulting
 Email: drew@xxxxxxxxxx.xxx  *  Site implementation & hosting
 Web  : www.drewtaylor.com   *  perl/mod_perl/DBI/mysql/postgres
 ----------------------------------------------------------------

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Passing params
Robert 20:30 on 09 Nov 2004

Re: [Templates] Passing params
Perrin Harkins 21:48 on 09 Nov 2004

Re: [Templates] Passing params
Drew Taylor 22:16 on 09 Nov 2004

[Templates] Re: Passing params
Robert Hicks 22:17 on 09 Nov 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52