private FileInfo CreateFileInfo(string templateName) { if (Path.IsPathRooted(templateName)) { templateName = templateName.Substring(Path.GetPathRoot(templateName).Length); } return new FileInfo(Path.Combine(viewRootDir, templateName)); }