mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 23:14:23 +00:00
add ability to have more methods available from within the templates
This commit is contained in:
13
dotdrop/jhelpers.py
Normal file
13
dotdrop/jhelpers.py
Normal file
@@ -0,0 +1,13 @@
|
||||
"""
|
||||
author: deadc0de6 (https://github.com/deadc0de6)
|
||||
Copyright (c) 2018, deadc0de6
|
||||
|
||||
jinja2 helper methods
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
|
||||
def exists(path):
|
||||
'''return true when path exists'''
|
||||
return os.path.exists(path)
|
||||
Reference in New Issue
Block a user