private void FeedOptions(List<ManifestItemWithContext> manifest, IDocumentBuildContext context)
{
Logger.LogVerbose("Feeding options from template...");
manifest.RunAll(m =>
{
if (m.TemplateBundle == null)
{
return;
}
using (new LoggerFileScope(m.FileModel.LocalPathFromRoot))
{
Logger.LogDiagnostic($"Feed options from template for {m.Item.DocumentType}...");
m.Options = m.TemplateBundle.GetOptions(m.Item, context);
}
});
}