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:
parent
680f13e1f6
commit
1870829ec2
10 changed files with 39 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue