word: "Bird"
word_with_spaces: " Spacebird\n"
list: [1, 2, 3]
map:
  a: b
  c: d
scary_html: "<>&'"
---
lower: {{ word|lower }}
upper: {{ word|upper }}
replace: {{ word|replace("B", "th") }}
escape: {{ "<"|escape }}
e: {{ "<"|e }}
double-escape: {{ "<"|escape|escape }}
safe: {{ "<"|safe|escape }}
list-length: {{ list|length }}
map-length: {{ map|length }}
string-length: {{ word|length }}
string-count: {{ word|count }}
reverse-list: {{ list|reverse }}
reverse-string: {{ word|reverse }}
trim: |{{ word_with_spaces|trim }}|
trim-bird: {{ word|trim("Bd") }}
join-default: {{ list|join }}
join-pipe: {{ list|join("|") }}
join_string: {{ word|join('-') }}
default: {{ undefined|default == "" }}
default-value: {{ undefined|default(42) }}
d: {{ undefined|d == "" }}
json: {{ map|tojson }}
json-pretty: {{ map|tojson(true) }}
json-scary-html: {{ scary_html|tojson }}
urlencode: {{ "hello world/baz"|urlencode }}
urlencode-kv: {{ dict(a="x y", b=2, c=3)|urlencode }}
