private void CheckConfigKeys(Configuration configuration) { var configKeys = TemplateTransformer.GetAllConfigKeysFromTemplate(Content); foreach (var configKey in configKeys) { var key = TemplateTransformer.GetTemplateKeyWithoutAfixes(configKey); var configurationHasKey = configuration.Data.ContainsKey(key); if (!configurationHasKey) { Logger.Warning("Warning: '{0}' - Is not in configuration values", configKey); } else { Logger.Debug("{0}: {1}", configKey, configuration.Data[key]); } } }
public string Run(Configuration configuration) { CheckConfigKeys(configuration); return(TemplateTransformer.TransformTemplateRecursive(Content, configuration.Data)); }