Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting With Lists #5

Open
smith-m opened this issue Jan 26, 2025 · 0 comments
Open

Formatting With Lists #5

smith-m opened this issue Jan 26, 2025 · 0 comments

Comments

@smith-m
Copy link

smith-m commented Jan 26, 2025

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant