Skip to content

Commit

Permalink
Create merge lists jinja helper
Browse files Browse the repository at this point in the history
  • Loading branch information
njbbaer committed Apr 21, 2024
1 parent 5a41433 commit 542e028
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/template_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ def _shuffle_list(list):
return shuffled_list


def _merge_lists(list1, list2):
return list1 + list2


def register_filters():
jinja2.filters.FILTERS["shuffle"] = _shuffle_list
jinja2.filters.FILTERS["merge"] = _merge_lists

0 comments on commit 542e028

Please sign in to comment.