extract template_type from render_context

This commit is contained in:
Daniel Sipka 2015-04-16 00:49:45 +02:00
parent ba64f4e541
commit dc513839bd
12 changed files with 153 additions and 129 deletions

View file

@ -18,13 +18,13 @@ std::string state::in_section::render(render_context& ctx, const token& token) {
std::string out;
if (!boost::apply_visitor(visitor::is_node_empty(), section_node))
out = boost::apply_visitor(
visitor::render_section(ctx, section_tokens),
visitor::render_section(ctx, section),
section_node);
ctx.set_state<outside_section>();
return out;
} else {
skipped_openings--;
section_tokens.push_back(token);
section << token;
}
break;
case token::type::inverted_section_open:
@ -35,7 +35,7 @@ std::string state::in_section::render(render_context& ctx, const token& token) {
case token::type::unescaped_variable:
case token::type::comment:
case token::type::partial:
section_tokens.push_back(token);
section << token;
break;
}
return "";