Adding 'expanduser' filter to the core filters list
Example usage: {{ my_path | expanduser }} # my_path: "~/path/to/file"
This commit is contained in:
parent
aafd08bab7
commit
f5505425f9
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue