lightbox grouping
Use generators to process the templates

and make sure we cast that to 'str' to please flup :-(