PHP vs. Python/comp.lang.php?

phil hunt philh at comuno.freeserve.co.uk
Fri Nov 30 08:53:19 EST 2001


On Fri, 30 Nov 2001 04:01:31 +0000, phil hunt <philh at comuno.freeserve.co.uk> wrote:
>>
>>Not true. There are likewise a number of templating packages for Python that
>>allowing you to "keep 'em separated".
>
>And in any case it is trivial to write your own in python; the %(varName)s
>syntax is your friend.

Even better you can have an html file with examples that are changed at run
time, allowing you to see what the thing will look like, e.g.:


<p>User name: <!-- BEGIN userName -->A N Other<!-- END -->

This gets changed programmatically to:

<p>User name: %(userName)

And the % operator inserts the actual user name.


-- 
*** Philip Hunt *** philh at comuno.freeserve.co.uk ***




More information about the Python-list mailing list