Example #1
0
        private void ParseIncludeTemplate(TemplateAST ast)
        {
            IncludeNodeVisitor v = new IncludeNodeVisitor();
            ast.Root.Accept(v);

            foreach (IncludeNode inc in v.Includes)
            {
                TemplateParser inner = new TemplateParser(_engine);
                TemplateAST innerAst = inner.Parse(inc.Path.UnBracketing(StringPair.DoubleQuote));
                inc.Parse(innerAst);
            }
        }
Example #2
0
        private void ParseIncludeTemplate(TemplateAST ast)
        {
            IncludeNodeVisitor v = new IncludeNodeVisitor();

            ast.Root.Accept(v);

            foreach (IncludeNode inc in v.Includes)
            {
                TemplateParser inner    = new TemplateParser(_engine);
                TemplateAST    innerAst = inner.Parse(inc.Path.UnBracketing(StringPair.DoubleQuote));
                inc.Parse(innerAst);
            }
        }
Example #3
0
        internal TemplateAST Parse(string fileName)
        {
            TemplateParser tp = new TemplateParser(this);

            return(tp.Parse(fileName));
        }
Example #4
0
 internal TemplateAST Parse(string fileName)
 {
     TemplateParser tp = new TemplateParser(this);
     return tp.Parse(fileName);
 }