Hi,
Jinja has this nice support for formatting like:
{{ '0x%0X' % payload.id }}
It would be nice to have something like this in tera, specially for integers file types. Maybe something more rust like:
0x{{ payload.id | format(":X") }}
or
0x{{ payload.id | format=":X" }}
Hi,
Jinja has this nice support for formatting like:
{{ '0x%0X' % payload.id }}It would be nice to have something like this in tera, specially for integers file types. Maybe something more rust like:
0x{{ payload.id | format(":X") }} or 0x{{ payload.id | format=":X" }}