| Revision 167 (by sean, 2008/09/22 02:15:27) |
|---|
#
# Simple "Hello world!" program.
#
from template import Template
from template.util import TemplateException
TEMPLATE_TEXT = "Hello [% thing %]!"
t = Template()
try:
print t.processString(TEMPLATE_TEXT, { "thing": "world" })
except TemplateException, e:
print "ERROR: %s" % e