Hi!
I have the need to put some background-image styles in one of our
stylesheets.
Currently I have done this by changing the stylesheet through javascript
on load time, but now I have to put a ton of such styles in our
stylesheet and don't want to go on with this hack.
I though about extending the tomahawk stylesheet component with an
attribute "filtered=true|false".
In such case I'll use our resource loading facility to plug in a filter
class between the resource and the browser.
In the end it should be possible to put the following in your css file:
.anyTest
{
background-image: url($servletContext/path/to/your/image.gif)
}
At the first request the css file will be filtered and cached in memory,
subsequent requests will deliver the already filtered text from there.
What do you think?
Ciao,
Mario