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

How to specify the number of cycles? #879

Closed
sunkaifei opened this issue Dec 5, 2023 · 2 comments
Closed

How to specify the number of cycles? #879

sunkaifei opened this issue Dec 5, 2023 · 2 comments

Comments

@sunkaifei
Copy link

How to specify the number of cycles? For example, I need to loop through the HTML template five times. It seems that querying documents now can only loop through arrays, which is very inconvenient

@Keats
Copy link
Owner

Keats commented Dec 6, 2023

You can do {% for i in range(end=5) %

@sunkaifei
Copy link
Author

Thank you

@Keats Keats closed this as completed Dec 6, 2023
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