Skip to main content
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:

Conditional

Tags for logical flow control and conditions

HTML

Tags for working with HTML content

Iteration

Tags for looping and collection handling

Syntax

Tags for language syntax constructs

Theme

Tags for theme customization

Variable

Tags for working with variables
For complete documentation, refer to the LiquidJS documentation.