21 satır
377 B
C
21 satır
377 B
C
|
#ifndef TEMPLATEPAGE_H
|
||
|
#define TEMPLATEPAGE_H
|
||
|
#include <string>
|
||
|
#include <string_view>
|
||
|
#include <map>
|
||
|
class TemplatePage
|
||
|
{
|
||
|
private:
|
||
|
std::string content;
|
||
|
std::map<std::string, std::string> varsMap;
|
||
|
public:
|
||
|
TemplatePage();
|
||
|
TemplatePage(std::string content);
|
||
|
|
||
|
std::string render() const;
|
||
|
|
||
|
void setVar(const std::string &key, std::string value);
|
||
|
};
|
||
|
|
||
|
#endif // TEMPLATEPAGE_H
|