From f0aabf8918372a12f953e0dc84c302fc122fca69 Mon Sep 17 00:00:00 2001 From: Lakshmi Vyasarajan Date: Tue, 12 Apr 2011 13:41:19 +0530 Subject: [PATCH] Fixed issue with template loader paths for windows --- hyde/ext/templates/jinja.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hyde/ext/templates/jinja.py b/hyde/ext/templates/jinja.py index f9f1e24..c32c11b 100644 --- a/hyde/ext/templates/jinja.py +++ b/hyde/ext/templates/jinja.py @@ -473,6 +473,10 @@ class HydeLoader(FileSystemLoader): Calls the plugins to preprocess prior to returning the source. """ template = template.strip() + # Fixed so that jinja2 loader does not have issues with + # seprator in windows + # + template = template.replace(os.sep, '/') logger.debug("Loading template [%s] and preprocessing" % template) (contents, filename,