aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/make_localstyle__44___pagetemplate__44___edittemplate_more_similar__63__.mdwn
blob: 6ac5100703afbec72bf677d6133c6caf2bcb633a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 `edittemplate` 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