On Tuesday, November 26, 2013 10:25:26 AM UTC-8, Steffen Hoffmann wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 26.11.2013 11:32, philip...@attiksystem.ch <javascript:> wrote: > > 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? > > There is much existing code, especially at trac-hacks.org, where you can > see that. >
... including the tutorial: http://trac-hacks.org/wiki/EggCookingTutorialTrac0.11 -- 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.