On 05 June 2001, Goodger, David said:
> One more question: Are there some newbie examples or docs that I could get
> my hands on? Thanks again.
If you can grok this:
template foo (x, y):
"This is a chunk of static text."
z = x + y
"""You can plug in variables like x (%s)
in a variety of ways.""" % x
"\n\n"
"Whitespace is important in generated text, \n"
"and z = "
str(z)
", but y is "
y
"."
and figure out what each of these:
foo(3, 4.0)
foo("hello", " there")
return, then you've got it. It's pretty simple.
Greg