Skip to content
Log in

render_liquid - Liquid Filter Reference

On this page

Description

Renders Liquid that is stored inside a field’s value, such as an admin-written rich-text description that contains {{ }} or {% %}. A feed in the default raw record mode returns each field’s stored value as it is, so Liquid inside it is not rendered unless you pass it through this filter.

Pass the record as the argument to make it available to the embedded Liquid as record. Inside a feed, the embedded output is encoded for the feed’s format, the same as the rest of the template.

A blank value is returned unchanged.

Property Value
Return Type string
Category text

Examples

```liquid

{%- for p in record_set.records %} {{ p.description | render_liquid: p }} {%- endfor %} ```

Output: each description with the embedded Liquid rendered. If a description contains {{ record.name }}, that part renders as the product’s name.

Was this article helpful?

Was this article helpful?