move foo-bar template to common docgenerator