Changeset 5351:c8084839327f in livinglogic.python.xist for src/ll/ul4c.py

Show
Ignore:
Timestamp:
02/16/13 14:03:06 (7 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

<?return?> tags in UL4 templates simply end the template rendering.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/ul4c.py

    r5349 r5351  
    21682168        template code. 
    21692169        """ 
    2170         yield from super().eval(vars) # Bypass ``self.eval()`` which simply stores the object as a local variable 
     2170        try: 
     2171            yield from super().eval(vars) # Bypass ``self.eval()`` which simply stores the object as a local variable 
     2172        except ReturnException: 
     2173            pass 
    21712174 
    21722175    def renders(self, **vars):