예제 #1
0
        private void ExecuteDocumentParser()
        {
            _parser.StartViewResponse();
            IDocumentParser parser = new HtmlDocumentParser(_htmlParser, this);

            parser.Execute(_parser);
        }
예제 #2
0
 private void ReadTemplate(char chr, char prev, int index)
 {
     //TODO avoid multiple instances
     if (chr == TagStartChr)
     {
         IDocumentParser parser = new HtmlDocumentParser();
         parser.Execute(this);
     }
     else if (chr == RazorChr)
     {
         IDocumentParser parser = new RazorDocumentParser();
         parser.Execute(this);
     }
     else
     {
         _buffer.Append(chr);
     }
 }
예제 #3
0
 public RazorDocumentParser(RazorDocumentParser razorParser, HtmlDocumentParser htmlParser)
     : this()
 {
     _root       = razorParser;
     _htmlParser = htmlParser;
 }
예제 #4
0
 public RazorDocumentParser(HtmlDocumentParser htmlParser)
     : this()
 {
     _htmlParser = htmlParser;
 }
 public HtmlDocumentParser(HtmlDocumentParser root, RazorDocumentParser razor) : this()
 {
     _root  = root;
     _razor = razor;
 }
 public HtmlDocumentParser(HtmlDocumentParser root) : this()
 {
     _root = root;
 }