Don't escape < and > inside templates

This commit is contained in:
Thomas Avé 2017-01-20 13:32:35 +01:00
parent 19f50d6cdc
commit c51f7bca4c
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ namespace templ {
{}
void Template::render(std::ostream& out, TemplateContext& context) {
mstch::config::escape = [](const std::string& str) -> std::string {
return str;
};
std::ifstream file;
file.open (m_filename);
std::stringstream tmplt;