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

Looping? #25

Open
wmoskal opened this issue Jul 8, 2019 · 2 comments
Open

Looping? #25

wmoskal opened this issue Jul 8, 2019 · 2 comments

Comments

@wmoskal
Copy link

wmoskal commented Jul 8, 2019

Is there a way to loop through an iterable object similar to how it is done in jinja?

@wmoskal
Copy link
Author

wmoskal commented Jul 8, 2019

The looping is to place data in a longtable, where each item is a list and each element of the list is one cell of the table

@tom-f-oconnell
Copy link

Yea. Just like the docs say "\BLOCK{...} is substituted for {% ... %}"

The looping syntax is just a straight translation of the usual Jinja syntax, and looks like this:

\BLOCK{ for item in items }
\VAR{item}
\BLOCK{ endfor }

Maybe an example with a loop would be useful in the documentation, but otherwise I think this issue can be closed.

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

2 participants