comparison 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
comparison
equal deleted inserted replaced
453:8351a77e13f5 454:96d363e2da4b
25 EXTENSIONS = [] 25 EXTENSIONS = []
26 26
27 def initialize(self, app): 27 def initialize(self, app):
28 self.app = app 28 self.app = app
29 29
30 def renderString(self, txt, data, filename=None, line_offset=0): 30 def renderSegmentPart(self, path, seg_part, data):
31 raise NotImplementedError() 31 raise NotImplementedError()
32 32
33 def renderFile(self, paths, data): 33 def renderFile(self, paths, data):
34 raise NotImplementedError() 34 raise NotImplementedError()