Exemplo n.º 1
0
 public TemplatePageLoader(IResourceFileReader reader, DocumentBuildContext context, int maxParallelism)
 {
     _reader             = reader;
     _maxParallelism     = maxParallelism;
     _rendererLoader     = new RendererLoader(reader, maxParallelism);
     _preprocessorLoader = new PreprocessorLoader(reader, context, maxParallelism);
 }
Exemplo n.º 2
0
 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);
 }