Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Unexpected behavior when string literals contain }} #288

Closed
jolleekin opened this issue Jan 23, 2021 · 1 comment
Closed

Unexpected behavior when string literals contain }} #288

jolleekin opened this issue Jan 23, 2021 · 1 comment

Comments

@jolleekin
Copy link

Input

{{ '{{' }}
{{ '}}' }}

Actual output

{{
' }}

Expected output

{{
}}

The issue is at tokenizer.ts, line 133

@harttle
Copy link
Owner

harttle commented Jan 23, 2021

It's by design. To output raw string literals, use raw:

{% raw %}{{{% endraw %}
{% raw %}}}{% endraw %}

@harttle harttle closed this as completed Jan 23, 2021
Repository owner locked and limited conversation to collaborators Jan 23, 2021
@harttle harttle added the bug label Jan 24, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants