Show More
@@ -665,12 +665,12 b' class engine(object):' | |||||
665 | def _load(self, t): |
|
665 | def _load(self, t): | |
666 | '''load, parse, and cache a template''' |
|
666 | '''load, parse, and cache a template''' | |
667 | if t not in self._cache: |
|
667 | if t not in self._cache: | |
|
668 | x = parse(self._loader(t)) | |||
|
669 | if self._aliasmap: | |||
|
670 | x = _aliasrules.expand(self._aliasmap, x) | |||
668 | # put poison to cut recursion while compiling 't' |
|
671 | # put poison to cut recursion while compiling 't' | |
669 | self._cache[t] = (_runrecursivesymbol, t) |
|
672 | self._cache[t] = (_runrecursivesymbol, t) | |
670 | try: |
|
673 | try: | |
671 | x = parse(self._loader(t)) |
|
|||
672 | if self._aliasmap: |
|
|||
673 | x = _aliasrules.expand(self._aliasmap, x) |
|
|||
674 | self._cache[t] = compileexp(x, self, methods) |
|
674 | self._cache[t] = compileexp(x, self, methods) | |
675 | except: # re-raises |
|
675 | except: # re-raises | |
676 | del self._cache[t] |
|
676 | del self._cache[t] |
General Comments 0
You need to be logged in to leave comments.
Login now