[mod_python] templates in stead of PSP

Julien Cigar jcigar at ulb.ac.be
Sat Aug 19 07:09:42 EDT 2006


Hi,

I suggest simpleTAL, it's a port or ZPT which doesn't require Zope.
It's quite fast (especially compared to Kid), and much more powerful 
than Kid. Despite the fact that I don't like Zope, I must admit that 
their template language is interesting. I especially like the concept of 
"slots", which allow to split up and reuse templates in a very elegant 
manner.
I haven't looked at the i18n support yet, but I *think* that simpleTAL 
supports the i18n tags ..

Regards,
Julien

Thomas Andrews wrote:
> Hi,
>
> I would like to use a templating 'language' like cheetah/kid/markup/spyce(?)
> instead of straight PSP. I don't want to run webware/turbogears/... in
> addition - I just want apache on it's own. Has anyone done this?
>
> I don't really mind at present which templating app I have to use, so
> long as I can get a working recipe, (though I'd *really* rather not use
> cgi to do it.)
>
> I tried to get kid going using the apache config below, but no matter
> what I try I get errors from apache:
>
> >From syslog:
>
>     "Invalid URI in request GET /kid/sysinfo.kid HTTP/1.1, referer:
>     http://localhost/kid/"
>
> The error reported in the browser is:
>
>     Bad Request
>     Your browser sent a request that this server could not understand.
>     Apache/2.0.55 (Debian) mod_python/3.1.3 Python/2.3.5 PHP/4.4.2-1.1
>     Server at localhost Port 80
>
> Here's my Apache config:
>
>     # ++++++++++++++++++++++++++++++++++
>     Alias /kid/ /var/www/kid/
>
>     <Directory /var/www/kid/>
>         Options +ExecCGI
>         Action kid-file kid_handler.cgi
>         AddHandler kid-file .kid
>     </Directory>
>     # ++++++++++++++++++++++++++++++++++
>
> What can I be doing wrong in the "Action" line above?
>
> Can anyone provide me with a basic working setup for any of the above
> apps? (It doesn't have to be Kid.)
>
> Many thanks,
> Thomas
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
>   



More information about the Mod_python mailing list