public static string Parse(ProjectItem projectItem, string sourcePath, string template, List<Type> extensions, object context, out bool success) { var instance = new Parser(extensions); var output = instance.ParseTemplate(projectItem, sourcePath, template, context); success = instance.hasError == false; return instance.matchFound ? output : null; }
public static string Parse(string template, Type customExtensions, object context, out bool success) { var instance = new Parser(customExtensions); var output = instance.ParseTemplate(template, context); success = instance.hasError == false; return instance.matchFound ? output : null; }