use file_path instead of func_name for the module name to prevent clashing template file names (thanks to chrismccord for discovering this bug)