internal static bool ContainsChapterOnlyTags(string template) => TemplateTags.GetAll() .Where(t => t.IsChapterOnly) .Any(t => ContainsTag(template, t.TagName));
public IEnumerable <TemplateTags> GetTemplateTags() => TemplateTags.GetAll() // yeah, this line is a little funky but it works when you think through it. also: trust the unit tests .Where(t => IsChapterized || !t.IsChapterOnly);
public static void AddParameterReplacement(this FileNamingTemplate fileNamingTemplate, TemplateTags templateTags, object value) => fileNamingTemplate.AddParameterReplacement(templateTags.TagName, value);