[Twisted-Python] container elements in domtemplate

webquotes.html in the domtemplate howto doesn't cover this case. template: {{{ <foo> stuff <bar> things </bar> </foo> }}} How do I replace "stuff" in the template without clearing the entire foo node, thus destroyng bar and depriving me of the opportunity to insert "things"?

On 07 Sep 2002 13:24:25 -0700, Kevin Turner <acapnotic@twistedmatrix.com> wrote:
<foo>stuff<bar>things</bar></foo>
That depends. What about this case: <foo>stuff<bar>things</bar>spam</foo> Do you want to replace stuff *and* spam? Or only stuff, or only spam, or both? It sounds like you want to be reading some DOM documentation; this isn't really specific to webmvc. -- | <`'> | Glyph Lefkowitz: Traveling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |

On 07 Sep 2002 13:24:25 -0700, Kevin Turner <acapnotic@twistedmatrix.com> wrote:
<foo>stuff<bar>things</bar></foo>
That depends. What about this case: <foo>stuff<bar>things</bar>spam</foo> Do you want to replace stuff *and* spam? Or only stuff, or only spam, or both? It sounds like you want to be reading some DOM documentation; this isn't really specific to webmvc. -- | <`'> | Glyph Lefkowitz: Traveling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | http://www.twistedmatrix.com |
participants (2)
-
Glyph Lefkowitz
-
Kevin Turner