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()); }
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(); }