inja
inja copied to clipboard
Using curly braces inside template without spaces
I'm parsing values into markdown format and having an issue when including a curly brace "{" inside of the template. For example the following line fails to parse:
{#{{child.kind}}-{{child.name}}}
Exception at Renderer.cpp:303 Failed to load template: 'kind_file' error: Exception at Renderer.cpp:303 Failed to load template: 'nonclass_members_details' error: [inja.exception.parser_error] (at 15:183) unexpected '}
Is there a workaround for this?
The only solution I have found is to use Environment::set_comment
to change the comment tokens to e.g. {##
and ##}
.