Exemplo n.º 1
0
 internal static bool ContainsChapterOnlyTags(string template)
 => TemplateTags.GetAll()
 .Where(t => t.IsChapterOnly)
 .Any(t => ContainsTag(template, t.TagName));
Exemplo n.º 2
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);
Exemplo n.º 3
0
		public static void AddParameterReplacement(this FileNamingTemplate fileNamingTemplate, TemplateTags templateTags, object value)
			=> fileNamingTemplate.AddParameterReplacement(templateTags.TagName, value);