qswiki/dynamic/dynamiccontentgetvar.cpp

12 lines
219 B
C++
Raw Permalink Normal View History

#include "dynamiccontentgetvar.h"
std::string DynamicContentGetVar::render()
{
return (*this->map)[this->argument];
}
void DynamicContentGetVar::setMap(std::map<std::string, std::string> &map)
{
this->map = &map;
}