Looking for a Python PHP programmer

Roger Binns rogerb at rogerbinns.com
Tue Jul 6 21:52:56 CEST 2004

Rene Pijlman wrote:
> OK, but I'm just curious... why didn't you use one of the Python-based
> template systems?

The most immediate problem was that the ISP didn't have mod_python or
something similar installed.  The implementation had to have seperate
back and front ends to prove that the front end could be done in any
language of the customer's choosing (I mainly expect them to want to
do Java).

And then none of the Python template systems I looked at match the
simplicity of Smarty's modifiers.  Look at
http://smarty.php.net/crashcourse.php  and see things like
|captitalize and |escape.  The full list is at
I also wrote one or two of my own.

I also needed to use the capture function for some pieces of
repeated text.  And I also wrote some of my own control structures
to help encapsulate form and state information.

The Smarty documentation is excellent.  Smarty definitely falls into
the "do one thing and do it well" camp.  I was VERY productive in
Smarty, and the source is immediately readable to people who don't
know PHP.

For Python, I think the closest match is Cheetah, but it tries to be
more generic, the filter syntax is less friendly than the Smarty version,
and it seems more clunky.  Some familiarity with the Python standard
library is also needed by other people reading your source.


More information about the Python-list mailing list