Hi,

Is there some documentation explaining how to setup a Trac plugin that has 
it's own js and css files, and to reference them in Trac pages?

I found how to add jquery-ui.js in the headers, like so:


*class HeaderScript(Component):*


*    implements(IRequestFilter)*

*    def pre_process_request(self, req, handler):*

*        return handler*


*    def post_process_request(self, req, template, data, content_type):*

*        add_script(req, "common/js/jquery-ui.js", "text/javascript")*

*        return (template, data, content_type)*


But how to reference something deployed in an .egg file?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-dev+unsubscr...@googlegroups.com.
To post to this group, send email to trac-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to