[pmwiki-devel] togglelink recipe
marc
gmane at auxbuss.com
Sat Dec 30 06:57:29 CST 2006
Patrick R. Michaud said...
> On Fri, Dec 29, 2006 at 09:22:00PM +0000, Hans wrote:
> > Friday, December 29, 2006, 8:11:42 PM, marc wrote:
> >
> > > Just a request for $HTMLHeaderFmt['toggleobj'] to be moved into function
> > > Toggle(), so that the JS is only written when the function is used.
> >
> > This would make sense, but then the JS would not be loaded if the (:toggle
> > markup is put in the SideBar or RightBar page, because markup in these
> > pages gets only loaded late, when the HTML head is already written.
> > this is a dilemma facing many recipes which need to load JS as part of
> > their functioning, but can't reliably use HTMLHeaderFmt in the function.
>
> Perhaps we should change PmWiki to process the SideBar and other
> <!--wiki:...--> directives before sending any output...?
If it sidesteps this gotcha then it sounds like a good idea - with all
the usual caveats. I'm sure you had a good reason for designing it this
way, though.
--
Best,
Marc
More information about the pmwiki-devel
mailing list