Esempio n. 1
0
 public LiquidTemplateManager(
     IMemoryCache memoryCache,
     LiquidViewParser liquidViewParser,
     IOptions <TemplateOptions> templateOptions,
     IServiceProvider serviceProvider
     )
 {
     _memoryCache      = memoryCache;
     _liquidViewParser = liquidViewParser;
     _templateOptions  = templateOptions.Value;
     _serviceProvider  = serviceProvider;
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LiquidProjectProcessor"/>
        /// </summary>
        public LiquidProjectProcessor()
        {
            var parserOptions = Options.Create(new LiquidViewOptions());

            _parser = new LiquidViewParser(parserOptions);
        }