durusmail: quixote-users: Quixote & Python 2.1?
Quixote & Python 2.1?
2001-06-05
2001-06-05
2001-06-05
2001-06-05
PTL docs
2001-06-07
2001-06-07
2001-06-07
2001-06-07
2001-06-08
Quixote & Python 2.1?
Greg Ward
2001-06-05
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


reply