Adding 'expanduser' filter to the core filters list

Example usage: {{ my_path | expanduser }} # my_path: "~/path/to/file"
pull/4889/merge
James Cammarata 11 years ago
parent aafd08bab7
commit f5505425f9

@ -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

Loading…
Cancel
Save