phases are a good idea

master
chrysn 2014-07-13 16:53:27 +02:00
parent 7bfd3b087d
commit d8b70fa39b
1 changed files with 7 additions and 1 deletions

View File

@ -261,4 +261,10 @@ same logic as IkiWiki itself. I don't think that's serious. --[[smcv]]
>>>> an error to invoke scan in the render phase; that would mean that
>>>> `readtemplate` needs to check whether it's invoked as a scan or not to
>>>> decide whether to scan the template page, but would be generally more
>>>> robust for future plugin writing. --[[chrysn]]
>>>> robust for future plugin writing.
>>>>
>>>> **addendum**: if the new phase state is used to create warnings/errors
>>>> about improper ikiwiki api use of plugins (which is something i'd
>>>> advocate), that should likewise warn if `add_link` actually adds a link in
>>>> the render phase. such a warning would have helped spotting the
>>>> link-related [[template evaluation oddities]] earlier. --[[chrysn]]