Re: [Templates] Newbie TT2 with CGI or mod_perl2 question?

[prev] [thread] [next] [Date index for 2004/07/08]

From: Todd Freeman
Subject: Re: [Templates] Newbie TT2 with CGI or mod_perl2 question?
Date: 15:09 on 08 Jul 2004
--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Good day...

I am using TT2 with Apache2 and mod_perl2 just fine. Really nice and snappy=
 response times.

Stuff looks kindof like:

package Nida::Blah;

use strict;

use Apache::Reload;
use Apache::Constants qw(:common);
use Apache::DBI;

use Template;
use CGI;

my $tt =3D Template->new(INCLUDE_PATH =3D> '/web/www/')
		|| die Template->error(), "\n";

sub handler
	{
	my $req =3D shift();
	my $q =3D new CGI;
	my $dbh =3D db_login();

	....

	}

Basically standard stuff...=20

On Thu, Jul 08, 2004 at 08:43:15AM -0600, Robert Creager wrote:
>=20
> Hey All,
>=20
> I'm looking for advice/opinions.
>=20
> I'm new to TT2 and web programming, but not Perl.  I've been using TT2 to=
 create
> static content, but need to jump into the dynamic content arena with data=
base
> driven info.  The site will be low volume (speciality info), similar in c=
ontent
> to http://sallman.tass-survey.org, except done with Perl and PostgreSQL a=
nd my
> data rather than Java and MySQL ;-)
>=20
> Is it realistic to get TT2 working with Apache2/mod_perl2, or should I st=
ick
> with CGI for now?
>=20
> Thanks for your thoughts on this.
>=20
> Cheers,
> Rob
> --=20
>  08:34:16 up 19:42,  1 user,  load average: 2.10, 2.10, 2.08
> Linux 2.6.5-01 #7 SMP Fri Apr 16 22:45:31 MDT 2004



--=20
Todd Freeman  Ext 6103                   .^.    Don't fear the penguins!
Programming Department                   /V\
Andrews University                      // \\    http://www.linux.org/
http://www.andrews.edu/~freeman/       /(   )\   http://www.debian.org/
                                        ^^ ^^

--x+6KMIRAuhnl3hBn
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA7WOSnbl1fXtXLfERAjRmAKCD1tw3Y3AAYyFB2SGT7TOVP78LNwCeObXW
76J6OrfFeZltWDGFrh4s7+I=
=hx+s
-----END PGP SIGNATURE-----

--x+6KMIRAuhnl3hBn--

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

(message missing)

Re: [Templates] Newbie TT2 with CGI or mod_perl2 question?
Todd Freeman 15:09 on 08 Jul 2004

Re: [Templates] Newbie TT2 with CGI or mod_perl2 question?
merlyn (Randal L. Schwartz) 17:03 on 08 Jul 2004

Re: [Templates] Newbie TT2 with CGI or mod_perl2 question?
merlyn (Randal L. Schwartz) 17:32 on 08 Jul 2004

Re: [Templates] Newbie TT2 with CGI or mod_perl2 question?
merlyn (Randal L. Schwartz) 21:08 on 08 Jul 2004

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