Beispiel #1
0
        public PugRendering(INodeServices nodeServices, IFileProvider fileProvider, IOptions <PugzorViewEngineOptions> options)
        {
            _nodeServices = nodeServices;
            _options      = options.Value;
            _fileProvider = fileProvider;

            ExtractNodeModules(FILE_COMPRESSED);
        }
Beispiel #2
0
 public PugzorViewEngine(PugRendering pugRendering, IOptions <PugzorViewEngineOptions> optionsAccessor)
 {
     _options      = optionsAccessor?.Value ?? throw new ArgumentNullException(nameof(optionsAccessor));
     _pugRendering = pugRendering;
 }