Opened 11 years ago
Last modified 9 years ago
#11129 closed enhancement
Handle CSS as text/css type — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 1.1.2 |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | ethan.jucovy@…, Christian Boos, olemis+trac@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I have a plugin that implements IRequestHandler
and returns CSS from process_request
like:
def process_request(self, req): myColors = [ ('a', '#3a3'), ('b', '#fff'), ('c', '#ada'), ('d', '#888') ] ... return 'myplugin.css', {'myColors': myColors}, 'text/css'
but the CSS doesn't get the correct mime type without patching chrome.py
as attached.
Note:
See TracTickets
for help on using tickets.
Patch to fix mime type of style sheets