mitsuhiko/jinja2 — Issue #98: Possible bug with split_template_path
Author: andrew-d
Created: 2012-03-04 02:40:35+00:00
State: open

Hi there,

I was recently trying to get [mynt](https://github.com/Anomareh/mynt) working, and I had strange behavior on Windows. This was caused by the path separator being different. Specifically, it was causing the split_template_path function to find the path separator in the template name, which then errors out. More info can be found [here](https://github.com/Anomareh/mynt/issues/9).

Now, I'm not sure if this is a bug, but would changing '/' to os.path.sep [here](https://github.com/mitsuhiko/jinja2/blob/master/jinja2/loaders.py#L29) perhaps make things a bit more cross-platform?

Best Regards.