Skip to main content
An introduction to Liquid syntax

Liquid syntax allows you to dynamically place content in document layouts and discussion templates

Matthew James Finkel avatar
Written by Matthew James Finkel
Updated over 7 years ago

Liquid syntax is a template language used in many web applications. In Current RMS, use Liquid syntax to place dynamic content and modify data in document layouts and discussion templates.

In Liquid, there are three types of code: objects, tags, and filters.

Objects

Objects, or output markup (which may resolve to text) are surrounded by matched pairs of curly brackets. They tell Current RMS where to show content on a layout. 

E.g. to output your company name, use:

{{ company.name }}

Should you change your company name in System Setup in future, this will be reflected on all documents where you’ve used this Liquid object.

Tags

Tags, or tag markup (which do not resolve to text), are surrounded by matched pairs of curly brackets and percent signs. They are used for logic operations and control flow.

E.g. to print out your company tax registration number only if you’ve entered one, use:

{% if company.tax_registration_number != blank %}
  {{ company.tax_registration_number }}
{% endif %}

Filters

Filters change the output of a Liquid object. They are placed within an object after a pipe character, with optional data supplied after a colon.

E.g. to capitalize your company name, use:

{{ company.name | upcase }}

Next steps

Did this answer your question?