15 línte
390 B
C++
15 línte
390 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)
|
|
{
|
|
Parser parser;
|
|
auto result = parser.parse(*this->database->createPageDao(), *this->urlProvider, rev->content);
|
|
return result;
|
|
}
|
|
return {};
|
|
}
|