diff piecrust/templating/base.py @ 454:96d363e2da4b

templating: Let Jinja2 cache the parsed template for page contents.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 06 Jul 2015 21:32:40 -0700
parents 28444014ce7d
children 1bb704434ee2
line wrap: on
line diff
--- a/piecrust/templating/base.py	Tue Jul 07 20:19:54 2015 -0700
+++ b/piecrust/templating/base.py	Mon Jul 06 21:32:40 2015 -0700
@@ -27,7 +27,7 @@
     def initialize(self, app):
         self.app = app
 
-    def renderString(self, txt, data, filename=None, line_offset=0):
+    def renderSegmentPart(self, path, seg_part, data):
         raise NotImplementedError()
 
     def renderFile(self, paths, data):