>>> import albatross >>> ctx = albatross.SimpleContext('.') >>> ctx.locals.menu = [(1, 'Spam'), (2, 'Eggs'), (3, 'Bacon')] >>> ctx.locals.sel = 1 >>> albatross.Template(ctx, '', ''' ... ... ''').to_html(ctx) >>> ctx.flush_content()