Components should be able to hold an enablement attribute for conditional deployment.
Format:
<component name="..." enable="..."> // ... </component>
By default that enablement should be true, static values would not be the usual use case since it would not be possible to override it. The target format would be:
<component name="..." enable="${nuxeo.property.controlling.enablement}"> // ... </component>
The corresponding variable woud be resolved from runtime properties at deployment time: if enablement is false then the component is not deployed, as is if was blacklisted thanks to the nxserver/config/blacklist file.
This feature should allow removing some of the nxftl logics to deploy or not some components depending on a template enablement, or runtime property resolution.