Skip to main content Link Search Menu Expand Document (external link)

What is Liquid?

Liquid is an open-source, high-performance, extendible, simple to use, and secure template language created by Shopify.

Use can use it in cast.app to create peronalized and dynamic content and tie it to practical advice and recommendations. For example, you could ask executives for an upsell if they have the upsell authority.

Liquid statements are built from variables, filters, and tags.

Variables contain information that you want to use, and the variables that Looker provides are described on this page. You can further modify those values by using filters and tags, which you can read about in this Liquid guide.

There are two types of markup in Liquid: Output and Tag.

Output markup (which may resolve to text) is surrounded by

{{ matched pairs of curly brackets (ie, braces) }}

Tag markup (which cannot resolve to text) is surrounded by

{% matched pairs of curly brackets and percent signs %}

Output

An output statement is a set of double curly braces containing an expression; when the template is rendered, it gets replaced with the value of that expression.

Here is a simple example of output:

Hello {{name}}
Hello {{user.name}}
Hello {{ 'cast user' }}

You can find the language documentation here and here.


Table of contents