Comments

The comment tag is used to communicate with other programmers in your code.

Comment

Comments are an easy way to let other programmers know what you are doing without displaying code on the front end.
You always need an opening and closing comment to indicate which block should not be displayed.
Any text within the opening and closing comment blocks will not be in output and any code within the comment blocks will not be executed.

{% comment %}Start calculation of tax here{% endcomment %}
This is a line of text
Output
This is a line of text

input comment

Displaying something in input view and not in export view, can be done with an input comment.

📘

In Silverfin there's an input view with fields that can be modified and an export view where only text is shown.

{% ic %}This is only show in the input view{% endic %}
This is a line of text
Output (in input view)
This is only show in the input view
This is a line of text
Output (in export view)
This is a line of text

non input comment

Displaying something in export view and not in input view, can be done with a non input comment.

📘

In Silverfin there's an input view with fields that can be modified and an export view where only text is shown.

{% nic %}This is only show in the export view{% endnic %}
This is a line of text
Output (in input view)
This is a line of text
Output (in export view)
This is only show in the export view
This is a line of text