2022-03-27 21:36:53 +02:00
|
|
|
#include "dynamiccontentincludepage.h"
|
|
|
|
#include "../parser.h"
|
|
|
|
std::string DynamicContentIncludePage::render()
|
|
|
|
{
|
|
|
|
auto revisionDao = this->database->createRevisionDao();
|
|
|
|
auto rev = revisionDao->getCurrentForPage(this->argument);
|
|
|
|
if(rev)
|
|
|
|
{
|
2022-03-28 21:25:37 +02:00
|
|
|
return rev->content;
|
2022-03-27 21:36:53 +02:00
|
|
|
}
|
|
|
|
return {};
|
|
|
|
}
|