>>> import albatross >>> ctx = albatross.SimpleContext('.') >>> MILD, MEDIUM, HOT = 0, 1, 2 >>> albatross.Template(ctx, '', ... ''' ... Mild ... Medium ... Hot ... ''').to_html(ctx) >>> ctx.locals.spicy = 2 >>> ctx.locals.curry = 'Vindaloo' >>> albatross.Template(ctx, '', ''' ... ... ''').to_html(ctx) >>> ctx.flush_content() Hot Vindaloo