<?py #@ARGS get_items ?>
<div>
<?py # fragment cache with key ('items/1') and lifetime (60sec) ?>
<?py if not_cached('items/1', 60): ?>
  <ul>
<?py     for item in get_items(): ?>
    <li>${item}</li>
<?py     #endfor ?>
  </ul>
<?py #endif ?>
<?py echo_cached() ?>
</div>
