private void ExecuteDocumentParser() { _parser.StartViewResponse(); IDocumentParser parser = new HtmlDocumentParser(_htmlParser, this); parser.Execute(_parser); }
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); } }
public RazorDocumentParser(RazorDocumentParser razorParser, HtmlDocumentParser htmlParser) : this() { _root = razorParser; _htmlParser = htmlParser; }
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; }