half-complete refactor

This commit is contained in:
Daniel Sipka 2015-04-16 21:05:59 +02:00
parent 25bbbfdbcc
commit 8fbcd12284
100 changed files with 483 additions and 327 deletions

View file

@ -18,10 +18,11 @@ std::string state::outside_section::render(
ctx.set_state<in_inverted_section>(token.content());
break;
case token::type::variable:
case token::type::unescaped_variable:
case token::type::unescaped_variable: {
return boost::apply_visitor(visitor::render_node((token.token_type() ==
token::type::variable)?flag::escape_html:flag::none),
ctx.get_node(token.content()));
}
case token::type::comment: break;
case token::type::text:
return token.content();