/
Differences between DotLiquid and Liquid syntax

Differences between DotLiquid and Liquid syntax

The Symend platform uses the DotLiquid implementation of the Liquid template language.

There are some notable differences in syntax between DotLiquid and Liquid. You can use this guide to apply your existing experience with Liquid using DotLiquid syntax.

 

DotLiquid

Liquid

 

DotLiquid

Liquid

Naming conventions

Uses camelCase for filters and operators.

e.g. dividedBy

Uses snake_case for filters and operators.

e.g. divided_by

Date formatting

By default, uses .NET date format strings.

{{bill.dueDate | date: 'MMMM dd, yyyy'}}

Utilizes Ruby’s date formatting.

{{ bill.dueDate | date: "%a, %b %d, %y" }}

Unsupported filters

Some filters available in Liquid are not implemented in DotLiquid, such as json, echo, and liquid.