You are trying to use templatefile as part of a module and you use a relative path to load a file but sometimes it fails, especially when others try to reuse the module. How can you deal with that?
Answer
Switch relative paths with what is known as path references. These are fixes: paths like module root path, module expression file path, etc.