blob: 7539e9a7042f06c56e894bbb252977fba2e1c772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef CONTENT_H
#define CONTENT_H 1
#include "RequestResponse.hpp"
#include <inja/inja.hpp>
#include <string>
#include <tuple>
#include <vector>
using Redirections = std::vector<std::string>;
using RenderData = inja::json;
class Content
{
public:
virtual bool Init() = 0;
virtual void Shutdown() = 0;
virtual bool Render(RequestResponse & rr, RenderData & rd, std::string & out) = 0;
virtual std::string const & GetUriBasePath() const = 0;
virtual std::string const & GetMainTemplate() const = 0;
virtual Redirections const & GetRedirections() const = 0;
};
#endif
|