Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix for Jinja templates on Windows #10

wants to merge 1 commit into from

2 participants


This should fix the problem mentioned in issue #9

@Anomareh Anomareh closed this

As I said in the issue, this is now fixed and will be in 0.1.9.

Thanks again.


I can confirm that I am able to install mynt using pip on Windows now. Some of the dependencies are a bit broken (specifically, misaka), but I have a fork that will compile on Windows with no issues.

Thank you!


Great! Thanks for confirming.

If you run into any other troubles with mynt on Windows let me know.


Just FYI, thanks to @FSX and @SRombauts, misaka now compiles and runs on Windows with only one minor issue (missing header file), which means that mynt should now work pretty much out-of-the-box on Windows, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 4, 2012
  1. Added fix for Jinja templates on Windows

    AndrewD authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 1 deletion.
  1. +5 −1 mynt/renderers/
6 mynt/renderers/
@@ -13,6 +13,7 @@
from mynt.exceptions import RendererException
from mynt.utils import absurl, normpath
+from os.path import sep as pathsep
class _PrefixLoader(PrefixLoader):
def get_source(self, environment, template):
@@ -33,6 +34,9 @@ def get_source(self, environment, template):
raise TemplateNotFound(template)
+ if pathsep != '/':
+ name = name.replace(pathsep, '/')
return loader.get_source(environment, name)
except TemplateNotFound:
raise TemplateNotFound(template)
@@ -81,7 +85,7 @@ def render(self, template, vars_ = {}):
def setup(self):
self.config['loader'] = _PrefixLoader(OrderedDict([
- ('/', FileSystemLoader(self.path)),
+ (pathsep, FileSystemLoader(self.path)),
('', FileSystemLoader(normpath(self.path, '_templates')))
]), None)
Something went wrong with that request. Please try again.