Example #1
0
 void generateJournalFeed(SiteWriter writer, JournalData journal)
 {
     var siteDomain = writer.Site.DomainName;
     var rssWriter = new RSSFeedWriter(journal, siteDomain);
     var res = _rssTemplate.generateXML(rssWriter);
     writer.writeFeed(rssWriter, res);
 }
Example #2
0
        void generateJournalPages(SiteWriter writer, JournalData journal)
        {
            var indexPage = journal.createIndexPage();
            generatePage(writer, indexPage);

            journal.createPages()
                .forEach(p => generatePage(writer, p));
        }
Example #3
0
 void generatePage(SiteWriter siteWriter, IPage page)
 {
     var writer = new PageWriter(siteWriter, page);
     var html = _pageTemplate.generateHTML(writer);
     page.writePage(writer, html);
 }