예제 #1
0
 /// <summary>
 /// Load file from template and given parameters
 /// Format object will check if templateOrPath is
 /// either a template object or a path of the file
 /// where the template is written
 /// </summary>
 /// <param name="templateOrPath">template or path where the template is</param>
 /// <param name="props"></param>
 protected void LoadFromTemplateObject(object templateOrPath, IEnumerable <Dictionary <string, string> > props)
 {
     FileFormat.LoadTemplate(templateOrPath);
     foreach (var prop in props)
     {
         FileFormat.AddProp(prop);
     }
     FileFormat.Generate();
     LoadContent(EntryType);
 }