generate-config: make unsupported directive functionality available to other templates