Liquid syntax lets you display information stored in OnRent Events without typing it into each new document. It can show company details, opportunity information, product lists and prices, and format the output to suit your document.
The three parts of Liquid
Objects: display information
Objects use double curly brackets. For example, this displays the company name:
{{ company.name }}When the company name changes in System Setup, newly generated documents use the updated value.
Tags: control what appears
Tags use curly brackets and percent signs. For example, show the tax registration number only when it has been entered:
{% if company.tax_registration_number != blank %}
{{ company.tax_registration_number }}
{% endif %}
Filters: format information
Filters follow a pipe character and can change text, dates or numbers:
{{ company.name | upcase }}
{{ item.price | currency }}Next steps
Learn more in Using Liquid tags, Using Liquid filters, and Liquid objects.