I need to dynamically change my CSS files by pulling some data, such as colors, from the database. I have chosen to use SASS in the application, but can I import an application variable into MVC 4 into my SCSS file?
I need to dynamically change my CSS files by pulling some data, such as colors, from the database. I have chosen to use SASS in the application, but can I import an application variable into MVC 4 into my SCSS file?
You can even use eval to process javascript expressions, but you can not create dynamic values this way you want in SASS. What you can do is create multiple style files and dynamically load them (or use Themes) according to the content of what you retrieved from the database.