Tags are used to add dynamic content to your theme. They allow you to insert variables, conditionals, and other elements into your templates.

Usage

Tags are wrapped with curly brace percentage delimiters {% %}. The text within the delimiters doesn’t produce visible output when rendered. In the example below, we check if certificates are enabled for a course. If certificate_enabled returns true, then we show a message indicating certificates are available. Otherwise, we show that certificates are not available.
{% if all_courses["my-course"].certificate_enabled %}
  Certificates are available for this course!
{% else %}
  Certificates are not available for this course.
{% endif %}
Certificates are available for this course!
Check detailed documentation for each tag in the following sections: For complete documentation, refer to the LiquidJS documentation.