Exemplo n.º 1
0
    def render(self, context):
        output = ""
        for bit in self.text:
            if isinstance(bit, basestring):
                output += bit
            else:
                output += bit.render(context)

        print remove_breaks(output)
        return remove_breaks(output)
Exemplo n.º 2
0
 def render(self, context):
     if not self.template:
         return ""
     op = self.render_template(self.template, context)
     return remove_breaks(op)