Non-web-based templating system

Diez B. Roggisch deets at nospam.web.de
Fri Apr 28 07:22:20 EDT 2006


qscomputing at gmail.com wrote:

> Hi,
> 
> I'm creating a small application in Python that uses lists and
> dictionaries to create a rudimentary database. I'd like to create some
> "fill-in-the-blanks" reports from this data, ideally by taking an RTF
> or plaintext file as a template and replacing placeholder tags with my
> data.
> Are there any good pre-written systems that would allow me to do this?

Maybe the built-in string interpolation is sufficient?

print "Hello %(name)s" % dict(name="Peter Pan")


diez



More information about the Python-list mailing list