Exemplo n.º 1
0
        private void AddEntry(string key, string template)
        {
            var needRender = TemplateUtil.NeedRender(template);

            if (!needRender)
            {
                return;
            }

            var entry = new TemplateEntry(key, template);

            _renders.Add(entry);
        }
Exemplo n.º 2
0
        private void AddEntries(IEnumerable <IConfigurationSection> sections)
        {
            foreach (var section in sections)
            {
                var key   = section.Path;
                var value = section.Value;

                if (value == null)
                {
                    AddEntries(section.GetChildren());
                }
                else if (TemplateUtil.NeedRender(value))
                {
                    AddEntry(key, value);
                }
            }
        }