Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }