Пример #1
0
 public WebsiteHost()
 {
     _meta     = new MetaSection();
     _host     = new MainSection();
     _title    = new HostSection();
     _chapters = new ChapterSection();
     _pages    = new HostSection();
     _page     = new HostSection();
 }
Пример #2
0
 public T GenericParseAction <T>(HtmlNode element, IParseDetails <T> details, IHostSection section, Func <string, T> postParse)
 {
     return(Parsing.GenericParseAction <T>(element, details, section, postParse, HostVariables));
 }
Пример #3
0
        // TODO: Refactor into a more palatable method, please...

        public static T GenericParseAction <T>(HtmlNode element, IParseDetails <T> details, IHostSection section, Func <string, T> postParse, Dictionary <string, string> hostVariables)
        {
            return(SectionGenericParseAction(element, details, section.ParseRegex, section.ParseReplace, postParse, hostVariables));
        }