]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/make_localstyle__44___pagetemplate__44___edittemplate_more_similar__63__.mdwn
How signinview handles the goto leak
[ikiwiki.git] / doc / todo / make_localstyle__44___pagetemplate__44___edittemplate_more_similar__63__.mdwn
1 If I'm reading the docs right, I count three different ways
2 of associating some local styling information with a portion
3 of a site:
4
5 * [[plugins/localstyle]] uses the [[ikiwiki/subpage/LinkingRules]] to find the 'nearest' stylesheet
6 * [[plugins/edittemplate]] uses a directive with a [[ikiwiki/PageSpec]] to indicate which
7     pages should get which templates
8 * [[plugins/pagetemplate]] doesn't do a thing for you unless you shoehorn a
9     `pagetemplate` directive into every affected page.
10
11 That last is the one that seems least useful. The [[ikiwiki/PageSpec]] approach seems
12 most flexible.
13
14 Would it be a bad thing to allow `pagetemplate` to work the way `edittemplate` does?
15 Maybe just extend the existing directive? If it has a `pages` parameter, it specifies
16 the template for the supplied [[ikiwiki/PageSpec]], otherwise it just affects the enclosing page
17 as it does now?
18
19 --Chap