public string ReadTemplateFile(Context context, string templateName) { try { templateName = templateName.Trim('\'', '"'); context.GetTracer().Info("Loading template: " + templateName); return(TemplateResolver.GetTemplateContents(templateName)); } catch (WhamException) { throw; } catch (Exception x) { throw new WhamTemplateException("Error while loading template: " + templateName, x); } }