Register the generator via a module and use closure param injection.
Merge pull request #1 from alkemist/master

Register the generator via a module and use closure param injection.