Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
html_middleware.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "middleware.h"
4 #include <mstch/mstch.hpp>
5 
11 class HtmlMiddleware : public Middleware {
12  std::string view;
13  mstch::map * context;
14 public:
21  explicit HtmlMiddleware(const char * nameID);
22 
26  ~HtmlMiddleware() override;
27 
34  bool autoExec() override;
35 
39  void exec() override;
40 
47  mstch::map * getContext();
48 
55  void setView(std::string & view);
56 
63  std::string getView();
64 
68  void clear() override;
69 };
~HtmlMiddleware() override
void setView(std::string &view)
bool autoExec() override
HtmlMiddleware(const char *nameID)
void clear() override
class wrapper for middleware
Definition: middleware.h:14
void exec() override
std::string getView()
inherited class to render html pages from templates
Definition: html_middleware.h:11
mstch::map * getContext()