tags:

views:

91

answers:

1

I want to pass variables in CSS. But the condition is that the CSS file is not my control. So, is there any way? If yes, please help me out. can i access my css file on fly by using python script?

A: 

Instead of serving the actual css file, you can load it with python insert variables as you please. It is not possible to use variables in css, but by using another programming language you can insert variables in the css. This will slow things down, so you should cache it, fx by creating a version of the parsed file.

googletorp