Peering Manager comes with a built-in templating feature. This feature can be used to generate configuration for routers as well as e-mails.
If you need some guidance before writing a template, you can take a look at the following example templates. Please note these may not be ready to use for you as they are maintained by the community. However, feel free to use them and to change them at your convenience.