wiki:AddStaticResourcesPlugin

Version 1 (modified by bobbysmith007, 5 years ago) (diff)

New hack AddStaticResourcesPlugin, created by bobbysmith007

AddStaticResourcesPlugin

Description

A plugin that maps static resources into urls of your choice. Thus if you wish to add a stylesheet or a javascript to an existing trac page, you can specify in the trac ini a regex that matches the urls of the pages and insert the resources.

Bugs/Feature Requests

Existing bugs and feature requests for AddStaticResourcesPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out AddStaticResourcesPlugin from here using Subversion, or browse the source with Trac.

Example

This will cause the helloworld alert message to appear on the ticket and newticket pages.

[static_resources]
/(new)?ticket = helloworld.js

Recent Changes

[14167] by bobbysmith007 on 2014-09-12 22:24:12
Allow using absolute refrences to static-resources
[13436] by bobbysmith007 on 2013-11-08 17:52:52
New version of addstaticresourcesplugin that interacts better with trac 1.0 and is a bit simpler
[13435] by bobbysmith007 on 2013-11-08 17:38:12
initing 1.0 branch

Author/Contributors

Author: bobbysmith007
Maintainer: bobbysmith007
Contributors: