Exemple #1
0
        public static Formatter LocatorBasedFormatter(ITagLib lib, string path, IResourceLocator locator, IResourceLocatorFactory factory)
        {
            var template = locator.GetDataAsString(path);

            return(new Formatter(template).
                   OverrideLib(lib).
                   OverrideExpressionLib(factory.ExpressionLib).
                   AllowTags(true).
                   SetLocatorFactory(factory).
                   SetInitialLocator(locator.Update(path)).
                   SetTagValidator(CreateTagValidatorFor(lib)).
                   Parse());
        }
Exemple #2
0
 public static Formatter LocatorBasedFormatter(ITagLib lib, string path, IResourceLocator locator, IResourceLocatorFactory factory)
 {
     var template = locator.GetDataAsString(path);
     return new Formatter(template).
                 OverrideLib(lib).
                 OverrideExpressionLib(factory.ExpressionLib).
                 AllowTags(true).
                 SetLocatorFactory(factory).
                 SetInitialLocator(locator.Update(path)).
                 SetTagValidator(CreateTagValidatorFor(lib)).
                 Parse();
 }