Allow passing of template folder path as a string argument