Changes between Version 17 and Version 18 of AddHeadersPlugin


Ignore:
Timestamp:
Jul 31, 2012, 5:53:56 AM (12 years ago)
Author:
Ryan J Ollos
Comment:

Syntax highlighting.

Legend:

Unmodified
Added
Removed
Modified
  • AddHeadersPlugin

    v17 v18  
    5454   * ''<name>''`.lang = `''<language of meta tag>''
    5555
    56 
    5756See also the [#Examples example] below.
    5857
     
    8180
    8281{{{
     82#!ini
    8383# in trac.ini
    8484[addheaders]
     
    122122
    123123=== Adding custom !JavaScript and CSS ===
     124
    124125The following example shows how to add some custom !JavaScript and CSS files. Here they all start with a common prefix. The JS files (abc_one.js,abc_two.js,abc_tree.js) are positioned in the `$TRAC_PROJECT_DIR/htdocs/js/` and the CSS files (style_print.css,style_screen.css) `$TRAC_PROJECT_DIR/htdocs/css/` directory.
    125126
    126127{{{
     128#!ini
    127129# in trac.ini
    128130[addheaders]
     
    137139
    138140{{{
     141#!ini
    139142# in trac.ini
    140143[addheaders]
     
    147150
    148151=== Weird filenames ===
     152
    149153While the names given by `add_scripts` or `add_styles` is used to build the default filename, it becomes just an arbitrary string when the real filename is set explicitly using ''<name>''`.filename`.
    150154This can be used when the real filename is quit weird, e.g. has commas included or is very long. Make sure to use an UTF-8 capable editor when adding non-ASCII letters.
    151155{{{
     156#!ini
    152157# in trac.ini
    153158[addheaders]
     
    164169
    165170=== General `link` tag ===
     171
    166172The `link` tags are used to define ''relations'' between the page and other pages, e.g. 'My startpage is at ..., the next page is at ...'. Trac itself adds a couple of link tags for `help`, `up`, `prev`, etc. for some pages.
    167173
     
    169175
    170176{{{
     177#!ini
    171178# in trac.ini
    172179[addheaders]