Generators, and removing templating from data