Browse Source

Fixed issue with template loader paths for windows

main
Lakshmi Vyasarajan 14 years ago
parent
commit
f0aabf8918
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      hyde/ext/templates/jinja.py

+ 4
- 0
hyde/ext/templates/jinja.py View File

@@ -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,


Loading…
Cancel
Save