Function `add_meta` to add meta tags similar to existing `add_link`
Reported by: |
Martin Scharrer <martin@…> |
Owned by: |
Martin Scharrer <martin@…> |
Priority:
|
normal
|
Milestone:
|
0.12
|
Component:
|
web frontend
|
Version:
|
0.11.5
|
Severity:
|
minor
|
Keywords:
|
meta tag
|
Cc:
|
paul@…
|
Branch:
|
|
Release Notes:
|
|
API Changes:
|
|
Internal Changes:
|
|
While trac.web.chrome
provides the functions add_link
, add_stylesheet
and add_script
to add link
and style
tags to the webpages, there is no function nor template code to add meta
tags. I detected this while working on the new version of my th:GoogleWebmasterVerifyPlugin which would have to add a special meta
tag.
This functionality can be easily added and I do not know any reason why meta
tags should be not permitted.
Please find attached a tested patch for web/chrome.py
and template/layout.html
.
Attachments
(2)
- addmetatag.patch
(2.1 KB
) - added by Martin Scharrer <martin@…> 15 years ago.
- Patch against v0.11.5 to add the function
add_meta
plus the necessary template code
- addmetatag.2.patch
(19.5 KB
) - added by Martin Scharrer <martin@…> 15 years ago.
- Patch against v0.11.5 to add the function add_meta plus the necessary template code
Download all attachments as:
.zip
Change History
(7)
Milestone: |
→ 0.12
|
Owner: |
set to Christian Boos
|
Severity: |
normal → minor
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Owner: |
changed from Christian Boos to Martin Scharrer <martin@…>
|
Patch against v0.11.5 to add the function
add_meta
plus the necessary template code