-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 26.11.2013 11:32, [email protected] 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. Steffen Hoffmann [1] http://trac-hacks.org/browser/tagsplugin/trunk/tractags/macros.py?rev=13392#L55 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlKU55IACgkQ31DJeiZFuHdHgACgu7R4XzYMZZNPQ2HnMPAoLpvw TeUAnj7t/3FvVVZ0MfCxk7qN+FJjoOh4 =LoNl -----END PGP SIGNATURE----- -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-dev. For more options, visit https://groups.google.com/groups/opt_out.
