half-complete refactor
This commit is contained in:
parent
25bbbfdbcc
commit
8fbcd12284
100 changed files with 483 additions and 327 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue