filter_to_binary (zotonic_mod_base v1.0.0-rc.17)

Convert the input to a binary value.

Example:

{{ 42|to_binary }}

Results in the binary value <<"42"\>\>.

This filter uses the z_convert:to_binary/1 function.

See also

stringify

Summary

Functions

to_binary/2