Mercurial > piecrust2
comparison piecrust/templating/jinjaengine.py @ 7:343d08ef5668
More PieCrust 3 fixes, and a couple of miscellaneous bug fixes.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 16 Aug 2014 15:07:22 -0700 |
parents | 474c9882decf |
children | dc72a288921f |
comparison
equal
deleted
inserted
replaced
6:f5ca5c5bed85 | 7:343d08ef5668 |
---|---|
229 def parse(self, parser): | 229 def parse(self, parser): |
230 # the first token is the token that started the tag. In our case | 230 # the first token is the token that started the tag. In our case |
231 # we only listen to ``'pccache'`` so this will be a name token with | 231 # we only listen to ``'pccache'`` so this will be a name token with |
232 # `pccache` as value. We get the line number so that we can give | 232 # `pccache` as value. We get the line number so that we can give |
233 # that line number to the nodes we create by hand. | 233 # that line number to the nodes we create by hand. |
234 lineno = parser.stream.next().lineno | 234 lineno = next(parser.stream).lineno |
235 | 235 |
236 # now we parse a single expression that is used as cache key. | 236 # now we parse a single expression that is used as cache key. |
237 args = [parser.parse_expression()] | 237 args = [parser.parse_expression()] |
238 | 238 |
239 # now we parse the body of the cache block up to `endpccache` and | 239 # now we parse the body of the cache block up to `endpccache` and |