From 971dfdd6869c9729d7d52e07af695af54d91b546 Mon Sep 17 00:00:00 2001 From: smcv Date: Mon, 8 Jun 2015 19:07:46 -0400 Subject: de-optimized to fix a bug --- doc/bugs/template_creation_error.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/bugs/template_creation_error.mdwn') 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 -- cgit v1.2.3