pass template paths to functions to renderfile()