public TemplatePageLoader(IResourceFileReader reader, DocumentBuildContext context, int maxParallelism) { _reader = reader; _maxParallelism = maxParallelism; _rendererLoader = new RendererLoader(reader, maxParallelism); _preprocessorLoader = new PreprocessorLoader(reader, context, maxParallelism); }
public TemplateModelTransformer(DocumentBuildContext context, TemplateCollection templateCollection, ApplyTemplateSettings settings, IDictionary <string, object> globals) { _context = context ?? throw new ArgumentNullException(nameof(context)); _templateCollection = templateCollection; _settings = settings; _globalVariables = globals; _rendererLoader = new RendererLoader(templateCollection.Reader, templateCollection.MaxParallelism); }