stencet  v0.1.16
Build C++ web server modules that allow easy routing and deployment.
ExtendsTag.h
1 /* Copyright (C) 2012-2013 Justin Berger
2  The full license is available in the LICENSE file at the root of this project and is also available at http://opensource.org/licenses/MIT. */
3 
4 #pragma once
5 #include <stencet/stencet>
6 
7 namespace stencet {
26  struct ExtendsTag : public BodyTag {
27  Template* extendThis = 0;
28  std::string extendThisName;
29  std::map<std::string, Template> sections;
30 
31  virtual void render(std::ostream& out, ViewContext& vm) const;
32  ExtendsTag(std::istream& stream, const std::string& content);
33  };
34 
35 }
36