template config from datasource