/// <summary> /// /// </summary> /// <param name="cache"></param> /// <param name="config"></param> public TemplateEngine(ITemplateCacheProvider cache, TemplateEngineConfig config) { if (cache == null) { cache = new DefaultTemplateCacheProvider(); } if (config == null) { config = new TemplateEngineConfig(); } _core = new Core(cache, config); }
internal Core(ITemplateCacheProvider templateCache, TemplateEngineConfig config) { _templateCache = templateCache; _config = config; }