Skip to content

Formatting With Lists #5

@smith-m

Description

@smith-m

The readme mentions that HPF addresses "Insufficient array management capabilities"

Can you document how?

Specifically curious about support for Jinja-style array iteration to HPF to format arrays inline. Example use case:

items = ['a', 'b', 'c']
formatted = hpf("List:\n{%for i, item in items%}Item {{i+1}}: {{item}}\n{%endfor%}", items=items)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions