Support for shared templates
It would be useful to allow including templates from some shared source, e.g. from a foo-common-templates
binary package, as well as a package-local directory.
Since .control
and .tests
templates have to be processed at source preparation time, while other templates are processed at build time, this introduces a risk of using different and inconsistent versions of the templates. This risk would need to be mitigated somehow.
Possible mitigations are:
- Document the risk and require such 'common templates' packages to provide multiple versions of the templates.
- Provide a way to copy templates at source preparation time, so that a consistent snapshot of the common templates is used.