Skip to content

Instantly share code, notes, and snippets.

@lanky
Created September 27, 2016 09:37
Show Gist options
  • Save lanky/0ffdf743a7ed268c00e8d76c2f36b067 to your computer and use it in GitHub Desktop.
Save lanky/0ffdf743a7ed268c00e8d76c2f36b067 to your computer and use it in GitHub Desktop.
{% for a, b in list1|zip(list2) %}
{{ a }}: {{ b }}
{% endfor %}`
#!/usr/bin/env python
def myzip(list1, list2):
return zip(list1, list2)
class FilterModule(object):
def filters(self):
return {
'zip' : myzip,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment