1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-07-02 14:04:16 +00:00

Import lib mstch and put it to good use.

Response classes are given a chance to modify the
dictionary that is later sent to mstch.
This commit is contained in:
King_DuckZ 2017-04-18 18:40:42 +01:00
parent 680f13e1f6
commit 1870829ec2
10 changed files with 39 additions and 11 deletions

View file

@ -18,6 +18,7 @@
#pragma once
#include "cgi_env.hpp"
#include "mstch/mstch.hpp"
#include <string>
#include <iostream>
#include <boost/utility/string_ref.hpp>
@ -52,7 +53,8 @@ namespace tawashi {
private:
virtual void on_process();
virtual void on_send (std::ostream& parStream) = 0;
virtual void on_send (std::ostream& parStream);
virtual void on_mustache_prepare (mstch::map& parContext);
cgi::Env m_cgi_env;
std::string m_resp_value;