diff piecrust/templating/base.py @ 1011:c4cf3cfe2726

bake: Better performance stats, and add callback to preload templates.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 26 Nov 2017 22:23:03 -0800
parents 1bb704434ee2
children
line wrap: on
line diff
--- a/piecrust/templating/base.py	Sun Nov 26 22:21:33 2017 -0800
+++ b/piecrust/templating/base.py	Sun Nov 26 22:23:03 2017 -0800
@@ -27,6 +27,9 @@
     def initialize(self, app):
         self.app = app
 
+    def populateCache(self):
+        pass
+
     def renderSegment(self, path, segment, data):
         raise NotImplementedError()