aboutsummaryrefslogtreecommitdiff
path: root/doc/todo
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2008-03-17 11:25:18 -0400
committerJoey Hess <joey@kitenet.net>2008-03-17 11:25:18 -0400
commit7ad702ed8800ba9e5526a1c07c9d627e944dc234 (patch)
tree5afdeceb83f1312501c8b8b2358d5bb299df7c2d /doc/todo
parent4533f52162a4d40a40e668467acfc199ce4abf8d (diff)
downloadikiwiki-7ad702ed8800ba9e5526a1c07c9d627e944dc234.tar
ikiwiki-7ad702ed8800ba9e5526a1c07c9d627e944dc234.tar.gz
web commit by http://madduck.net/
Diffstat (limited to 'doc/todo')
-rw-r--r--doc/todo/turn_edittemplate_verbosity_off_by_default.mdwn30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/todo/turn_edittemplate_verbosity_off_by_default.mdwn b/doc/todo/turn_edittemplate_verbosity_off_by_default.mdwn
new file mode 100644
index 000000000..8b6941310
--- /dev/null
+++ b/doc/todo/turn_edittemplate_verbosity_off_by_default.mdwn
@@ -0,0 +1,30 @@
+`edittemplate` replaces its directive with a note like "edittemplate person
+registered for people/*". It would be nice if this were dependent on
+a `verbose` parameter and default to off. I don't see the value in it, and by
+disabling the output, I can keep template registration as close as possible to
+the action as needed.
+
+I think this (untested) patch might just do the trick:
+
+ --- a/IkiWiki/Plugin/edittemplate.pm
+ +++ b/IkiWiki/Plugin/edittemplate.pm
+ @@ -46,8 +46,13 @@ sub preprocess (@) { #{{{
+
+ $pagestate{$params{page}}{edittemplate}{$params{match}}=$params{template};
+
+ - return sprintf(gettext("edittemplate %s registered for %s"),
+ - $params{template}, $params{match});
+ + if (yesno($params{verbose})) {
+ + return sprintf(gettext("edittemplate %s registered for %s"),
+ + $params{template}, $params{match});
+ + }
+ + else {
+ + return '';
+ + }
+ } # }}}
+
+ sub formbuilder (@) { #{{{
+
+--[[madduck]]
+
+[[tags wishlist patch]]