[Cascavel-pm] Instalando TT2

vict0r vgdias em gmail.com
Terça Fevereiro 6 08:28:31 PST 2007


Minha pergunta foi em cima disso, q está no manual do TT.



DYNAMIC CONTENT GENERATION VIA APACHE/MOD_PERL HANDLER

NOTE: the Apache::Template module is now available from CPAN and
provides a simple and easy to use Apache/mod_perl interface to the
Template Toolkit. It's only in it's first release (0.01) at the time
of writing and it currently only offers a fairly basic facility, but
it implements most, if not all of what is described below, and it
avoids the need to write your own handler. However, in many cases,
you'll want to write your own handler to customise processing for your
own need, and this section will show you how to get started.

The Template module can be used in a similar way from an
Apache/mod_perl handler. Here's an example of a typical Apache
httpd.conf file:

    PerlModule CGI;
    PerlModule Template
    PerlModule MyOrg::Apache::User

    PerlSetVar websrc_root   /home/abw/websrc

    <Location /user/bin>
        SetHandler     perl-script
        PerlHandler    MyOrg::Apache::User
    </Location>


Sem essa configuração no Apache eu consigo usar o TT com mod_perl ?

# rpm -q perl mod_perl httpd perl-Template-Toolkit
perl-5.8.8-5
mod_perl-2.0.2-5.1
httpd-2.2.2-1.2
perl-Template-Toolkit-2.15-1.fc5



On 2/5/07, Luis Motta Campos <luismottacampos em yahoo.co.uk> wrote:
> On Feb 5, 2007, at 2:26 PM, vict0r wrote:
> > Sim, mas para isso preciso configurar o Apache certo?
> > É essa configuração q preciso.
>
>   Não precisa de nada no apache.
>   Você pode por favor me enviar:
>
>   1. Um programa mínimo capaz de reproduzir o seu erro?
>   2. As versões do seu Perl, Apache e TT?
>
>   Vou ajudar:
>
>   mande para a gente
>
>   perl -V
>
>   cpan -D Template Apache Apache2
>
>   $(which httpd) -v
>
>   $(which httpd) -L
>
>   Isto deve resolver o meu problema de falta de informação crônico...
>   Putamplexos!
> --
> Luis Motta Campos is a software engineer,
> perl fanatic evangelist, and amateur {cook, photographer}
>
>
> _______________________________________________
> Cascavel-pm mailing list
> Cascavel-pm em pm.org
> http://mail.pm.org/mailman/listinfo/cascavel-pm
>


-- 
Java é portável? Não, Java é insuportável!

#!/usr/bin/perl
use perl;


Mais detalhes sobre a lista de discussão Cascavel-pm