A Liquid syntax template engine for Swift.
- Comment
- Raw
- Truthy and falsy
- Whitespace control
- Filters
- Variable
-
assign
-
capture
-
increment
-
decrement
-
- Operators
-
==
equals -
!=
does not equal -
>
greater than -
<
less than -
>=
greater than or equal to -
<=
less than or equal to -
or
logical or -
and
logical and -
contains
checks substring inside a string
-
- Control flow
-
if
if a certain condition is true -
unless
if a certain condition is not met -
elsif
more conditions -
else
else conditions -
case/when
switch statement
-
- Iteration
-
for
-
break
-
continue
-
limit
limits the loop (for parameters) -
offset
begins the loop at the specified index (for parameters) -
range
defines a range of numbers to loop through -
reversed
reverses the order of the loop
-
- Default Filter