mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2024-11-23 00:33:44 +00:00
Expose token and a bool to tell if it's a pastie page to mustache.
This commit is contained in:
parent
218e9ab6cd
commit
2a5b6277a4
2 changed files with 3 additions and 0 deletions
|
@ -182,6 +182,8 @@ namespace kamokan {
|
|||
boost::get<std::string>(parContext["pastie"])
|
||||
);
|
||||
parContext["self_destructed"] = pastie_info.self_destructed;
|
||||
parContext["pastie_token"] = token;
|
||||
parContext["pastie_page"] = true;
|
||||
}
|
||||
|
||||
std::string PastieResponse::on_mustache_retrieve() {
|
||||
|
|
|
@ -174,6 +174,7 @@ namespace kamokan {
|
|||
statuslog->info("Sending response");
|
||||
SPDLOG_TRACE(statuslog, "Preparing mustache dictionary");
|
||||
mstch::map mustache_context {
|
||||
{"pastie_page", false},
|
||||
{"version", boost::string_view{STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "." STRINGIZE(VERSION_PATCH)}},
|
||||
{"tawashi_version", tawashi::version()},
|
||||
{"base_uri", base_uri()},
|
||||
|
|
Loading…
Reference in a new issue