protected TemplateGroup GetTemplateGroupFromResource(string templateName) { var tg = new TemplateGroupString(templateName.Replace("_", "."), Resources.ResourceManager.GetString(templateName)); tg.ErrorManager = new ErrorManager(ERROR_LISTENER); tg.Load(); return(tg); }
public TemplateGroupString ReadTemplate(string template) { var full = Path.Combine(TemplatesPath, template); var resource = full.Replace('/', '.'); var s = new TemplateGroupString(ReadResource(resource)); s.Load(); return(s); }