Skip to content

Support for formatting #474

Open
@MichaelSasser

Description

@MichaelSasser

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" }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions