>>> 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', 0)
('checkbox', 'menu', 'eggs', 0)
('checkbox', 'menu', 'bacon', 0)
('checkbox', 'eric', 'half', 0)
('checkbox', 'parrot', 'on', 0)
('checkbox', 'halibut', 'on', 0)
>>> 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" />
