create jinja function, file exists