aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>2013-09-13 05:47:46 -0400
committeradmin <admin@branchable.com>2013-09-13 05:47:46 -0400
commit3c0a5691179441397f8c19a7d92c044371a0c1a3 (patch)
tree726c7c2e46758d0a7d79b6374479f315128f69f4 /doc/bugs
parent4e7946055e7f59f1f0d0a0a1fce3fdf6d6d5095c (diff)
downloadikiwiki-3c0a5691179441397f8c19a7d92c044371a0c1a3.tar
ikiwiki-3c0a5691179441397f8c19a7d92c044371a0c1a3.tar.gz
new plugin which sort of solves this
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/template_creation_error.mdwn27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/bugs/template_creation_error.mdwn b/doc/bugs/template_creation_error.mdwn
index 79dccc136..f3a476427 100644
--- a/doc/bugs/template_creation_error.mdwn
+++ b/doc/bugs/template_creation_error.mdwn
@@ -109,3 +109,30 @@ Please, let me know what to do to avoid this kind of error.
> for backwards compatibility?
>
> --[[smcv]]
+
+>> [[!template id=gitbranch author="[[smcv]]" branch=smcv/definetemplate]]
+>> [[!tag patch]]
+>> OK, here is a branch implementing what I said. It adds the `definetemplate`
+>> directive to [[plugins/goodstuff]] as its last commit.
+>>
+>> Templates with the current strange semantics will still work, until
+>> IkiWiki breaks compatibility.
+>>
+>> Possible controversies:
+>>
+>> * Should the `definetemplate` plugin be core, or in goodstuff, or neither?
+>>
+>> * Should \[[!definetemplate]] be allowed on any page (with the implementation
+>> of `template("foo")` looking for a `definetemplate` in `templates/foo`,
+>> then a `definetemplate` in `foo`, then fall back to the current logic)?
+>> If not, should \[[!definetemplate]] raise an error when used on a page not
+>> in `templates/`, since it will have no practical effect there?
+>>
+>> * Is it OK to rely on `definetemplate` being enabled in the basewiki's
+>> templates?
+>>
+>> * Should the "use definetemplate" wording in the documentation of
+>> template and edittemplate be stronger? Should those plugins automatically
+>> load definetemplate?
+>>
+>> --[[smcv]]