diff options
author | http://smcv.pseudorandom.co.uk/ <http://smcv.pseudorandom.co.uk/@web> | 2010-03-30 12:09:59 +0000 |
---|---|---|
committer | Joey Hess <joey@finch.kitenet.net> | 2010-03-30 12:09:59 +0000 |
commit | 026355cfa24dc911a247dcafca10c6ea74ae515b (patch) | |
tree | ba07f2fe66413848f9c198850aab36b86c263e49 /doc | |
parent | f673ce266c8dadb263c6850cc5f7d3e6e7a68e70 (diff) | |
download | ikiwiki-026355cfa24dc911a247dcafca10c6ea74ae515b.tar ikiwiki-026355cfa24dc911a247dcafca10c6ea74ae515b.tar.gz |
respond and attempt to invoke Joey :-)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/plugins/contrib/ftemplate/discussion.mdwn | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/plugins/contrib/ftemplate/discussion.mdwn b/doc/plugins/contrib/ftemplate/discussion.mdwn index adb66ee6a..de4b35ef0 100644 --- a/doc/plugins/contrib/ftemplate/discussion.mdwn +++ b/doc/plugins/contrib/ftemplate/discussion.mdwn @@ -9,9 +9,24 @@ or something). > I got the impression that `pagetemplate` hooks are intended to be completely independent of `template` variables; page-template is for the actual `page.tmpl` template, while `template` is for other templates which are used inside the page content. So I don't understand why one would need a run_hooks option. --[[KathrynAndersen]] +>> `Render`, `inline`, `comments` and `recentchanges` run `pagetemplate` +>> hooks, as does anything that uses `IkiWiki::misctemplate`. From that +>> quick survey, it seems as though `template` is the only thing that +>> uses `HTML::Template` but *doesn't* run `pagetemplate` hooks? +>> +>> It just seems strange to me that `field` needs to have its own +>> of `template` (this), its own variant of `inline` (`report`), +>> and so on - I'd tend to lean more towards having `field` +>> enhance the existing plugins. I'm not an ikiwiki committer, +>> mind... Joey, your opinion would be appreciated! --[[smcv]] + Another missing thing is that `ftemplate` looks in the "system" templates directories, not just in the wiki, but that seems orthogonal (and might be a good enhancement to `template` anyway). --[[smcv]] > Yes, I added that because I wanted the option of not having to make all my templates work as wiki pages also. --[[KathrynAndersen]] + +>> Yeah, that's something that annoys me about `template` too. I've +>> opened a todo: [[todo/user-defined_templates_outside_the_wiki]]. +>> --s |