Render_if: Conditional Parts in Nevow Templates

http://eagain.net/blog/2005/12/17/nevow_render_if.htmlhtml   def render_if(self, ctx, data): r=ctx.tag.allPatterns(str(bool(data))) return ctx.tag.clear()[r] python <nevow:invisible nevow:rend
相关文章
相关标签/搜索