Skip to content

Advanced filters

This reference article provides an overview of advanced filters in Liquid and how they can be used.

Encoding filters

URL filters

Property accessor filter

Example hash: {"a" => 42, "b" => 0} Example input: {{hash | property_accessor: 'a'}} Example output: 42

Additionally, the property accessor filter allows you to template a custom attribute into a hash key to access a particular hash value.

Number formatting filters

JSON escape / string escape filter

This filter should always be used when personalizing a string in a JSON dictionary and is useful for webhooks in particular.

HOW HELPFUL WAS THIS PAGE?
New Stuff!