On Apr 29, 6:48 pm, Emmanuel Blot <[email protected]> wrote:
> What would be the cleanest way to add some stylesheet definitions:
>   * from a plugin (here: Bitten)
>   * for CSS definitions that change the appearance of the main navigation bar
>   * even when the request is not related to the plugin (i.e. whatever
> the request, the main navigation bar appearance should be consistent)

For styles needed in a plugin to render its own content, then use
add_stylesheet() in plugin request handling when needed.

For a general styling, implement IRequestFilter and use the
post_process_request method that is guaranteed to execute for all
requests - even error pages are run by here. Just check that it is
actually a template that is about to be rendered (no need to add it to
RSS feed rendering and similar). It is what I do for http://www.coderesort.com
styling.


:::simon

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to