You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
{{- ##
This is a description of my template.
## -}}
Sometimes I want to put an example of a Scriban code block in the comment.
Example:
{{- ##
If you want to use option A, paste the following line into your template:
{{ "There are " + numberOfLions + " lions in the zoo." }}
## -}}
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:
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: