Menu

[r1787]: / blog / trunk / data / basic_master.h  Maximize  Restore  History

Download this file

38 lines (31 with data), 838 Bytes

 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
28
29
30
31
32
33
34
35
#pragma once
#include <cppcms/view.h>
#include <booster/function.h>
#include <cppcms/serialization.h>
namespace cppcms {
namespace json {
class value;
}
}
namespace data {
struct general_info : public cppcms::serializable {
std::string blog_title;
std::string blog_description;
std::string contact;
std::string copyright_string;
void serialize(cppcms::archive &a)
{
a & blog_title & blog_description & contact & copyright_string;
}
};
struct basic_master :public cppcms::base_content {
general_info info;
std::string media;
std::string host;
std::string cookie_prefix;
booster::function<std::string(std::string const &)> markdown2html;
booster::function<std::string(std::string const &)> xss;
std::string (*latex)(std::string const &);
};
void init_tex_filer(cppcms::json::value const &v);
}
MongoDB Logo MongoDB