]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
a wish for more from pagetemplate
authorhttp://anastigmatix.net/ <http://anastigmatix.net/@web>
Tue, 30 Sep 2014 20:16:31 +0000 (16:16 -0400)
committeradmin <admin@branchable.com>
Tue, 30 Sep 2014 20:16:31 +0000 (16:16 -0400)
doc/todo/make_localstyle__44___pagetemplate__44___edittemplate_more_similar__63__.mdwn [new file with mode: 0644]

diff --git a/doc/todo/make_localstyle__44___pagetemplate__44___edittemplate_more_similar__63__.mdwn b/doc/todo/make_localstyle__44___pagetemplate__44___edittemplate_more_similar__63__.mdwn
new file mode 100644 (file)
index 0000000..78a3cf4
--- /dev/null
@@ -0,0 +1,19 @@
+If I'm reading the docs right, I count three different ways
+of associating some local styling information with a portion
+of a site:
+
+* [[plugins/localstyle]] uses the [[ikiwiki/subpage/LinkingRules]] to find the 'nearest' stylesheet
+* [[plugins/edittemplate]] uses a directive with a [[ikiwiki/PageSpec]] to indicate which
+    pages should get which templates
+* [[plugins/pagetemplate]] doesn't do a thing for you unless you shoehorn a
+    `pagetemplate` directive into every affected page.
+
+That last is the one that seems least useful. The [[ikiwiki/PageSpec]] approach seems
+most flexible.
+
+Would it be a bad thing to allow `pagetemplate` to work the way `edittmplate` does?
+Maybe just extend the existing directive? If it has a `pages` parameter, it specifies
+the template for the supplied [[ikiwiki/PageSpec]], otherwise it just affects the enclosing page
+as it does now?
+
+--Chap