>>> import albatross >>> class Ctx(albatross.SimpleContext): ... def input_add(self, *args): ... print args ... >>> ctx = Ctx('.') >>> ctx.locals.swallow = 'African' >>> albatross.Template(ctx, '', ''' ... ... ... ''').to_html(ctx) ('radio', 'swallow', 'African', False) ('radio', 'swallow', 'European', False) >>> ctx.flush_content()