PajamaScript

Roger Binns rogerb at rogerbinns.com
Sun Dec 5 21:51:38 EST 2004


"Jerome Chan" <eviltofu at gmail.com> wrote in message news:c312d08f.0412051603.622b3315 at posting.google.com...
>I wrote something called PajamaScript. Basically, it parses a text
> file and looks for <pj> tags. Then it calls python to handle the
> scripting. Why learn another language when you already know Python?

Why write another templating tool, when there are so many already
(other than as a valuable learning exercise).  Check out the
Python Cookbook:

http://aspn.activestate.com/ASPN/Python/Cookbook/

It has several.  Here are the best:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52217
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/162292

Note that they also deal with the area you will have an issue
in which is how to add conditional statements.

Roger 





More information about the Python-list mailing list