Get config from template