If I'm reading the docs right, I count three different ways of associating some local styling information with a portion of a site:
- localstyle uses the LinkingRules to find the 'nearest' stylesheet
- edittemplate uses a directive with a PageSpec to indicate which pages should get which templates
- pagetemplate doesn't do a thing for you unless you shoehorn a
pagetemplatedirective into every affected page.
That last is the one that seems least useful. The PageSpec approach seems most flexible.
Would it be a bad thing to allow
pagetemplate to work the way
Maybe just extend the existing directive? If it has a
pages parameter, it specifies
the template for the supplied PageSpec, otherwise it just affects the enclosing page
as it does now?