Changes between Version 1 and Version 2 of AddHeadersPlugin


Ignore:
Timestamp:
Oct 31, 2008, 11:50:11 PM (15 years ago)
Author:
Martin Scharrer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AddHeadersPlugin

    v1 v2  
    33== Description ==
    44
    5 This plug-in allows Trac 0.11 server admins to add script and link headers into all trac pages without having to create a Chrome template file.
     5This plug-in allows Trac 0.11 server admins to add `script` and `link` headers into all trac pages without having to create a Chrome template file.
     6This allows the easy usage of own !JavaScript and CSS files. Also all other kinds of `link` headers can be added.
    67
    78== Installation ==
     
    1314}}}
    1415
     16== Usage ==
     17Comming soon. In the meantime see the [#Example example] below.
    1518
    1619== Bugs/Feature Requests ==
     
    3134
    3235== Example ==
     36The following example shows how to add files for a multi-style implementation:
     37The !JavaScript file is located at `$TRAC_PROJECT_DIR/htdocs/js/multistyle.js` and all CSS files are located at `$TRAC_PROJECT_DIR/htdocs/css/`.
     38A general style file '`common.css`' is included which holds all common style definition. The default style is in '`default.css`' and the alternative styles in '`theme1.css`' and '`theme2.css`'.
     39Please note that general CSS files are added using `add_styles` while the others using `add_links`. This has HTML and Trac API related reasons.
    3340
    3441{{{
    35 The following example shows how to add files for a multi-style implementation:
    36 The JavaScript file is located "$TRAC_PROJECT_DIR/htdocs/js/multistyle.js" and all CSS files are located at "$TRAC_PROJECT_DIR/htdocs/css/". A general style file 'common.css' is included which holds all common style definition. The default style is in 'default.css' and the alternative styles in 'theme1.css' and 'theme2.css'.
    37 
    3842# in trac.ini
    3943[addheaders]