<?py ## '_context["_layout"]' is equivarent to '{% extends "foobar.html" %}' ?>
<?py ## in Django template engine. ?>
<?py _context['_layout'] = 'ex11-customlayout.pyhtml' ?>

<?py ## main content part ?>
<?py start_capture('content_part') ?>
<ul>
<?py for item in items: ?>
  <li>${item}</li>
<?py #end ?>
</ul>
<?py stop_capture() ?>
