1
0
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:
deadc0de6
2018-11-19 18:16:35 +01:00
parent 0f88bf8b1c
commit d569201b0b
4 changed files with 139 additions and 2 deletions

13
dotdrop/jhelpers.py Normal file
View 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)