- Get link
- X
- Other Apps
b:comment
The b:comment tag, or the comment tag, is a tag for adding a non-rendered comment to a template, or for adding a comment with dynamic content.
Attributes
render - Whether to render the comment into the HTML (default: false)
Example usage
Non-rendered comments
<b:comment>
This is an explanation.
It will not be in the rendered HTML.
</b:comment>
Rendered comments
<b:comment render='true'>
This is<b:if cond='not data:view.isPost'> not</b:if> a post page.
</b:comment>
On a post, this would produce
<!-- This is a post page -->
On other pages, this would produce
<!-- This is not a post page -->