Example #1
0
        public virtual TemplateNode Add(TemplateNode n)
        {
            if (Children == null)
                Children = new List<TemplateNode>();

            Children.Add(n);

            return n;
        }
Example #2
0
        public virtual TemplateNode Add(TemplateNode n)
        {
            if (Children == null)
            {
                Children = new List <TemplateNode>();
            }

            Children.Add(n);

            return(n);
        }
Example #3
0
 internal CompiledTemplate(TemplateNode tree)
 {
     Macros = new Dictionary <string, TemplateNode>(StringComparer.OrdinalIgnoreCase);
     Tree   = tree;
 }
Example #4
0
 internal CompiledTemplate(TemplateNode tree)
 {
     Macros = new Dictionary<string, TemplateNode>(StringComparer.OrdinalIgnoreCase);
     Tree = tree;
 }