13 regels
281 B
C++
13 regels
281 B
C++
#include "dynamiccontentincludepage.h"
|
|
#include "../parser.h"
|
|
std::string DynamicContentIncludePage::render()
|
|
{
|
|
auto revisionDao = this->database->createRevisionDao();
|
|
auto rev = revisionDao->getCurrentForPage(this->argument);
|
|
if(rev)
|
|
{
|
|
return rev->content;
|
|
}
|
|
return {};
|
|
}
|