Adjusted wrapper so that it receives a file path, instead of the passed template data