>>> import albatross
>>> class Ctx(albatross.SimpleContext):
...     def input_add(self, *args):
...         print args
... 
>>> ctx = Ctx('.')
>>> ctx.locals.menu = ['spam', 'eggs']
>>> ctx.locals.eric = 'half'
>>> ctx.locals.parrot = 'on'
>>> ctx.locals.halibut = 'off'
>>> albatross.Template(ctx, '<magic>', '''
... <al-input type="checkbox" name="menu" value="spam" whitespace>
... <al-input type="checkbox" name="menu" value="eggs" whitespace>
... <al-input type="checkbox" name="menu" value="bacon" whitespace>
... <al-input type="checkbox" name="eric" value="half" whitespace>
... <al-input type="checkbox" name="parrot" whitespace>
... <al-input type="checkbox" name="halibut" whitespace>
... ''').to_html(ctx)
('checkbox', 'menu', 'spam', False)
('checkbox', 'menu', 'eggs', False)
('checkbox', 'menu', 'bacon', False)
('checkbox', 'eric', 'half', False)
('checkbox', 'parrot', 'on', False)
('checkbox', 'halibut', 'on', False)
>>> ctx.flush_content()
<input type="checkbox" name="menu" value="spam" checked />
<input type="checkbox" name="menu" value="eggs" checked />
<input type="checkbox" name="menu" value="bacon" />
<input type="checkbox" name="eric" value="half" checked />
<input type="checkbox" name="parrot" value="on" checked />
<input type="checkbox" name="halibut" value="on" />
