Created
September 27, 2016 09:37
-
-
Save lanky/0ffdf743a7ed268c00e8d76c2f36b067 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for a, b in list1|zip(list2) %} | |
{{ a }}: {{ b }} | |
{% endfor %}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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