Adding 'expanduser' filter to the core filters list

Example usage: {{ my_path | expanduser }} # my_path: "~/path/to/file"
This commit is contained in:
James Cammarata 2014-02-20 13:47:13 -05:00
parent aafd08bab7
commit f5505425f9

View file

@ -164,6 +164,7 @@ class FilterModule(object):
# path
'basename': os.path.basename,
'dirname': os.path.dirname,
'expanduser': os.path.expanduser,
'realpath': os.path.realpath,
# failure testing