Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use template tags in stylesheets?

I'd like to be able to use the template syntax in style.css to say things like

a {
    color: {{ LINK_COLOR }};

To re-use a few global colour and style definitions throughout the template. Is it possible to pass stylesheets through jinja before including them?

Furthermore, I'd like to have such skin-specific settings accessible through the administration interface - what's the best approach there? Can I somehow include a file in the skin's directory that defines the possible parameters for the skin? How would I include this in the livesettings? The obvious advantage is that it would be easier to generate variants of the same skin, ie. different color themes or the choice between different fonts.