-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
Escaping code blocks within comment blocks #359
Comments
Yes, the original behavior was to allow something like Any fix will have to preserve this behavior. |
It would be really helpful to have a way to include scriban examples with code blocks in comments. Is there currently ANY way to do this? |
Sometimes, I use a comment inside a code block as a header for the template. Since I don't want the comment itself to be output to the template, so I need Scriban to interpret it - so I put it in the code block.
Example:
Sometimes I want to put an example of a Scriban code block in the comment.
Example:
I would like the code block inside the comment block to be escaped.
Currently, the Scriban renderer sees the
}}
inside the comment block to be the end of the comment block and the outer code block.Additionally, no syntax error is presented for failure to properly close the comment block.
The text was updated successfully, but these errors were encountered: