adds rss feed support to blog
This commit is contained in:
parent
6d627aa9b4
commit
d8253d3333
117 changed files with 5336 additions and 326 deletions
|
@ -42,31 +42,24 @@ class BlogPageBuilder
|
|||
private:
|
||||
int options;
|
||||
|
||||
std::string outFolder;
|
||||
std::string inFolder;
|
||||
|
||||
std::string pageTemplate;
|
||||
std::string articleIdentifier;
|
||||
std::string navIdentifier;
|
||||
|
||||
std::vector<Page*> pages;
|
||||
BlogParser* parser;
|
||||
|
||||
std::string navSection;
|
||||
|
||||
std::string readFile(std::string fileUrl);
|
||||
int calculateIdentifierLocation(std::string id, std::string text);
|
||||
void collectPages();
|
||||
|
||||
void createPage(Page* page);
|
||||
bool isOptionEnabled(int flag);
|
||||
|
||||
public:
|
||||
|
||||
BlogPageBuilder(std::string templateFileUrl, std::string inFolder, std::string outFolder,
|
||||
int flags, std::string articleIdentifier = "<article>");
|
||||
BlogPageBuilder(std::string templateFileUrl, std::vector<Page*> pages, std::string inFolderUrl, int flags, std::string articleIdentifier = "<article>");
|
||||
~BlogPageBuilder();
|
||||
|
||||
void buildAllPages();
|
||||
std::string createPage(std::string articleHTML);
|
||||
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue