Am 20.10.2006 um 19:17 schrieb Christopher Lenz:
> In my current implementation, the macro/processor would be
> responsible for checking whether the function returned a value, and
> inserting that to its output stream in some way. But I'm going to
> investigate whether Trac could just put any requried $.loadStyleSheet
> () calls in the footer, meaning the return value wouldn't even be
> needed, i.e. the implementation of add_stylesheet() might end similar
> to the following:
>
> if req.environ.get('trac.chrome.rendering'):
> req.environ['trac.chrome.extrastyles'].append(href)
>
> ... and the layout.html template would be responsible for pulling in
> those "late" style sheets in via $.loadStyleSheet() after the content
> has been rendered.
And that turned out to be very simple and completely transparent. See:
<http://trac.edgewall.org/attachment/wiki/ChristopherLenz/
wiki2x_in_templates.diff>
Cheers,
Chris
--
Christopher Lenz
cmlenz at gmx.de
http://www.cmlenz.net/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/trac-dev
-~----------~----~----~----~------~----~------~--~---