Closed Gdahuks closed 11 months ago
Template names always use forward slashes, there are previous issues about this topic: https://github.com/pallets/jinja/issues/767, https://github.com/pallets/jinja/issues/880
PS: Even for filesystem paths you do not have to use backslashes - internally even all the Windows APIs work fine with forward slashes.
Jinja does not always recognize Windows slashes (). This kind of slash is returned when you use Windows
os.path.join()
.get_template()
should work even if the path is defined in Windows format (if the Windows system is used). I will prepare PR fixing this issue by myself.Environment: