[mod_python] templates in stead of PSP

Julien Cigar jcigar at ulb.ac.be
Mon Aug 21 04:02:29 EDT 2006


- templates are unreadable
- templates are not valid xhtml
- content is not properly escaped
- indentation is painful in a template
- text based templates generate a lot of blank space
- text-based templates don't work all that well for many text formats
- ...

sandip wrote:
> psp templating is great!! its is simple to use also..
>
> what is the problem with using PSP templates?
>
> thanks
> sandip
>
> ----- Original Message ----- From: "Thomas Andrews" <tandrews at grok.co.za>
> To: <mod_python at modpython.org>
> Sent: Saturday, August 19, 2006 1:24 PM
> Subject: [mod_python] templates in stead of PSP
>
>
>> 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 
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
office: jcigar at ulb.ac.be
home: mage at mordor.ath.cx



More information about the Mod_python mailing list