Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using curly braces inside template without spaces #220

Open
Babilinski opened this issue Oct 20, 2021 · 1 comment
Open

Using curly braces inside template without spaces #220

Babilinski opened this issue Oct 20, 2021 · 1 comment

Comments

@Babilinski
Copy link

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?

@Reen
Copy link

Reen commented Aug 30, 2022

The only solution I have found is to use Environment::set_comment to change the comment tokens to e.g. {## and ##}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants