to_binaryΒΆ

Convert the input to a binary value.

Example:

{{ "Hello"|to_binary }}

Results in the binary value <<"Hello">>.

This filter uses the z_convert:to_binary/1 function.

See also

stringify

Previous topic

timesince

Next topic

to_integer

Versions

Actions