$ pytenjin -s views/page.pyhtml
_buf = []
title = _context.get('title'); items = _context.get('items'); 
_context['page_title'] = 'Tenjin: Layout Template Example'
_buf.extend(('''<h2>''', escape(to_str(title)), '''</h2>
<table>\n''', ));
i = 0
for item in items:
    i += 1
    klass = i % 2 and 'odd' or 'even'
    _buf.extend(('''  <tr class="''', to_str(klass), '''">
    <td>''', escape(to_str(item)), '''</td>
  </tr>\n''', ));
#endfor
_buf.extend(('''</table>\n''', ));
print(''.join(_buf))
