<html>
 <body>

<?py ## if variable 'header_part' is defined then print it, ?>
<?py ## else print default header part. ?>
  <div id="header">
<?py if not captured_as('header_part'): ?>
   <img src="img/logo.png" alt="logo" ?>
<?py #end ?>
  </div>

<?py ## main content part ?>
  <div id="content">
<?py _buf.append(content_part) ?>
  </div>

<?py ## if variable 'footer_part' is defined then print it, ?>
<?py ## else print default footer part. ?>
  <div id="footer">
<?py if not captured_as('footer_part'): ?>
   <hr />
   <em>webmaster@example.com</em>
<?py #end ?>
  </div>
  
 </body>
</html>
