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

Add randomness to contrib #547

Merged
merged 3 commits into from
Jul 31, 2024
Merged

Add randomness to contrib #547

merged 3 commits into from
Jul 31, 2024

Conversation

mitsuhiko
Copy link
Owner

This adds new filters and functions to minijinja-contrib:

  • randrange() to generate a random integer
  • lipsum() to generate lorem impsum
  • |random to select a random element in a sequence
  • cycler() to create a Jinja2 style cycler
  • joiner() to create a Jinja2 style joiner

@mitsuhiko mitsuhiko merged commit 506e51b into main Jul 31, 2024
30 checks passed
@mitsuhiko mitsuhiko deleted the feature/more-filters branch July 31, 2024 14:29
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

Successfully merging this pull request may close these issues.

1 participant