Templates and policies are stored under /conf/<myconf>
OOTB example for WeRetail:
Templates - /conf/we-retail/settings/wcm/templates
Policies - /conf/we-retail/settings/wcm/policies
As such, you can create a package for similar locations in your AEM and export your custom templates and related policies