From: smcv Date: Mon, 8 Jun 2015 23:07:46 +0000 (-0400) Subject: de-optimized to fix a bug X-Git-Tag: 3.20150610~20 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/971dfdd6869c9729d7d52e07af695af54d91b546 de-optimized to fix a bug --- diff --git a/doc/bugs/template_creation_error.mdwn b/doc/bugs/template_creation_error.mdwn index 33a863ec5..81b8a5c58 100644 --- a/doc/bugs/template_creation_error.mdwn +++ b/doc/bugs/template_creation_error.mdwn @@ -234,6 +234,13 @@ same logic as IkiWiki itself. I don't think that's serious. --[[smcv]] >>> drop the contents of `%scanned` and rely on a single boolean >>> flag instead. >>> +>>>> This is not actually good enough for the templatebody +>>>> directive, which does in fact need to scan certain pages +>>>> during the render phase, namely when a page that is rendered +>>>> due to dependencies uses a template that no other page being +>>>> rendered in this pass was using. I've reverted this optimization, +>>>> to fix [[wrong rendering of templatebody]]. --[[smcv]] +>>> >>> `%scanned` is likely to be no larger than `%rendered`, which >>> we already track, and whose useful lifetime does not overlap >>> with `%scanned` now. I was tempted to merge them both and call