>>> import albatross
>>> ctx = albatross.SimpleContext('.')
>>> MILD, MEDIUM, HOT = 0, 1, 2
>>> albatross.Template(ctx, '<magic>',
... '''<al-lookup name="curry">
... <al-item expr="MILD">Mild <al-value expr="curry"></al-item>
... <al-item expr="MEDIUM">Medium <al-value expr="curry"></al-item>
... <al-item expr="HOT">Hot <al-value expr="curry"></al-item>
... </al-lookup>''').to_html(ctx)
>>> ctx.locals.spicy = 2
>>> ctx.locals.curry = 'Vindaloo'
>>> albatross.Template(ctx, '<magic>', '''
... <al-value expr="spicy" lookup="curry" whitespace>
... ''').to_html(ctx)
>>> ctx.flush_content()
Hot Vindaloo
