Changes between Version 17 and Version 18 of AddHeadersPlugin
- Timestamp:
- Jul 31, 2012, 5:53:56 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddHeadersPlugin
v17 v18 54 54 * ''<name>''`.lang = `''<language of meta tag>'' 55 55 56 57 56 See also the [#Examples example] below. 58 57 … … 81 80 82 81 {{{ 82 #!ini 83 83 # in trac.ini 84 84 [addheaders] … … 122 122 123 123 === Adding custom !JavaScript and CSS === 124 124 125 The 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. 125 126 126 127 {{{ 128 #!ini 127 129 # in trac.ini 128 130 [addheaders] … … 137 139 138 140 {{{ 141 #!ini 139 142 # in trac.ini 140 143 [addheaders] … … 147 150 148 151 === Weird filenames === 152 149 153 While 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`. 150 154 This 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. 151 155 {{{ 156 #!ini 152 157 # in trac.ini 153 158 [addheaders] … … 164 169 165 170 === General `link` tag === 171 166 172 The `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. 167 173 … … 169 175 170 176 {{{ 177 #!ini 171 178 # in trac.ini 172 179 [addheaders]