Help centerConsole

Getting Started

IntroductionCreate a projectIntelliSense

AI Components

Getting started

Courier

Getting startedCommandsConfiguration
Upgrade

Canvas

ExpressionsFilters & functionsCanvasTemplatingVariables
absbatchcapitalizecolumnconvert_encodingdate_modifydatedefaultescapefilterfirstformatgroup_byimage_tagimage_urljoinjson_encodekeyslastlengthlowermapmergenl2brnumber_formatrawreading_timereducereplacereverseroundsliceslugsortspacelesssplitstriptagstitletrimupperurl_encodeDeprecated filters
Help centerConsole
DocumentationAPI ReferenceGuidesChangelog
CanvasFilters

format

The format filter formats a given string by replacing the placeholders.

{{ 'I like %s and %s.' | format(foo, 'bar') }}

{# outputs I like foo and bar
  if the foo parameter equals to the foo string. #}

Last updated on

first

The first filter returns the first "element" of a sequence, a mapping, or a string.

group_by

The group_by filter groups array items by a given key.