[Twisted-web] How to render an empty stan tag in Nevow
psanchez at nortel.com
Tue Sep 27 15:27:56 MDT 2005
I have a situation like this:
def render_salute(self, context, data):
rv = <something-I-don't-know>
rv = loaders.stan(T.p['You made it'])
docFactory = loaders.stan(
What I want in render_salute is to return 'nothing' if <condition> is
false. Basically, as if the T.invisible in the docFactory didn't exist.
<something-I-don't-know> = loaders.stan(T.p[''])
but it has the side effect of forcing a line break which is undesirable
(in my real code the T.invisible is inside a table cell). Even returning
a string would do it!
More information about the Twisted-web