stencet  v0.1.16
Build C++ web server modules that allow easy routing and deployment.
tag.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/template.h>
6 #include <stencet/region.h>
7 #include <stencet/factory.h>
8 namespace stencet {
9  struct ParseError : public std::runtime_error {
10  ParseError(const std::string& what) : std::runtime_error(what) {}
11  };
12 
13  struct BadlyFormedTagError : public ParseError {
14  BadlyFormedTagError(const std::string& what) : ParseError(what) {}
15  };
16 
17  struct Tag : public Region {
18 
19  };
20 
21  struct BodyTag : public Tag {
22  Template body;
23  };
24 
26 }