[Twisted-Python] another woven question

Alex Levy mesozoic at polynode.com
Tue Jul 22 15:18:49 EDT 2003


Every template file needs to contain one root element.
So instead of templateX.html being:

  <h1>Something</h1>
  <p>Foo!</p>
  
..you should make it:

  <div>
    <h1>Something</h1>
    <p>Foo!</p>
  </div>
 
Another useful bit of code you may want to use is called ExpandMacro, and is
detailed in a previous post:
http://www.twistedmatrix.com/pipermail/twisted-python/2003-June/004662.html

-- 
Alex Levy
WWW: http://mesozoic.geecs.org
 
"Never let your sense of morals prevent you from doing what is right."
 -- Salvor Hardin, Isaac Asimov's _Foundation_




More information about the Twisted-Python mailing list