public void RegisterTemplateWithFile(string key, string file) { keyToTemplate[key] = () => GetTemplateFromFile(file); }