Support reading config from template