[pmwiki-users] css for just one wikigroup

Hans design5 at softflow.co.uk
Sun Nov 5 13:28:30 CST 2006


Sunday, November 5, 2006, 7:05:56 PM, marc wrote:

> I'd argue that a recipe that loads its CSS after local customisation is
> broken. There's no reason to do it, after all. And it breaks the PmWiki
> model, at least as I understand it.

I would not call it broken. And it uses a standard pmwiki way of adding
HTML into the page head. And a recipe author when using this method
($HTMLHeaderFmt) has no control where the code will be placed.
Using $HTMLStylesFmt styles will allways go into the <styles> section
right after <!--HTMLHeader-->, using $HTMLHeaderFmt not in a function
called by markup will place it before the skin.css if the skin.css is
loaded with $HTMLHeaderFmt, but used in a function called by markup it
will come after, and last in the loading sequence.

If this is not quite as pmwiki intended ("breaking the model", as you
call it), then I think something in pmwiki needs changing, to prevent
this, and not in the recipe. As I said, I think it is smart for markup
to call a function, and loading of styles etc is done through this
function, for pages where needed, and not general.

I still have lots of way to improve my code writing in this respect.
But I am curious what Pm may say to this issue of late loading via a
function call.


Hans





More information about the pmwiki-users mailing list