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

Return pasties into a proper html page.

I don't think html escaping is needed, since pasties
go through the colorizer first.

I don't really like the workaround to not call on_send() when
I don't want the html output, it's a bit omg what's going on
there... I'll have to rewrite that bit.
This commit is contained in:
King_DuckZ 2017-04-25 22:56:19 +01:00
parent 54e737c171
commit 06920f8d84
6 changed files with 55 additions and 20 deletions

View file

@ -52,6 +52,7 @@ namespace tawashi {
std::string load_mustache() const;
redis::IncRedis& redis() const;
const SettingsBag& settings() const;
void call_on_send (bool parCall);
private:
virtual void on_process();
@ -66,5 +67,6 @@ namespace tawashi {
Types m_resp_type;
std::unique_ptr<redis::IncRedis> m_redis;
bool m_header_sent;
bool m_call_derived_on_send;
};
} //namespace tawashi