Template-engine
Thomas Guettler
guettli at thomas-guettler.de
Wed Nov 5 10:50:12 EST 2003
Am Wed, 05 Nov 2003 14:24:00 +0100 schrieb Jan-Erik Meyer-Lütgens:
> Miika Keskinen wrote:
>> Hi all
>>
>> I was in need for a simple template engine (like PEAR::IT.php) and didn't
>> find any suitable. Yes, there is many templating engines available but
>> most are far too complex or does implement some additional features in
>> their syntax.
>>
> Try Cheetah: http://www.cheetahtemplate.org/
try python:
def foo(self):
ret=[]
ret.append(self.header())
ret.append("""
Time is too short to rewrite parsers <br>
...
""")
ret.append(self.footer())
return ''.join(ret)
thomas
More information about the Python-list
mailing list