Ejemplo n.º 1
0
 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);
Ejemplo n.º 2
0
 internal static bool ContainsChapterOnlyTags(string template)
 => TemplateTags.GetAll()
 .Where(t => t.IsChapterOnly)
 .Any(t => ContainsTag(template, t.TagName));