Mercurial > piecrust2
diff piecrust/templating/jinjaengine.py @ 989:8adc27285d93
bake: Big pass on bake performance.
- Reduce the amount of data passed between processes.
- Make inter-process data simple objects to make it easier to test with
alternatives to pickle.
- Make sources have the basic requirement to be able to find a content item
from an item spec (path).
- Make Hoedown the default Markdown formatter.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 19 Nov 2017 14:29:17 -0800 |
parents | 1bb704434ee2 |
children |
line wrap: on
line diff
--- a/piecrust/templating/jinjaengine.py Fri Nov 03 23:14:56 2017 -0700 +++ b/piecrust/templating/jinjaengine.py Sun Nov 19 14:29:17 2017 -0800 @@ -19,7 +19,7 @@ def renderSegment(self, path, segment, data): if not _string_needs_render(segment.content): - return segment.content + return segment.content, False self._ensureLoaded() @@ -34,7 +34,7 @@ raise TemplateNotFoundError() try: - return tpl.render(data) + return tpl.render(data), True except self._jinja_syntax_error as tse: raise self._getTemplatingError(tse) except AbortedSourceUseError: