0
I need to change my CSS files dynamically by pulling some data ,like colors, from the database. I chose to use SASS in the application, but I can import an application variable in MVC 4 to my SCSS file ?
0
I need to change my CSS files dynamically by pulling some data ,like colors, from the database. I chose to use SASS in the application, but I can import an application variable in MVC 4 to my SCSS file ?
1
You can even use Val to process javascript expressions, but you can’t create dynamic values like this in SASS.
What you can do is create multiple style files and load them dynamically (or use Themes) according to the content of what you recovered from the database.
Browser other questions tagged c# asp.net-mvc asp.net asp.net-mvc-4 sass
You are not signed in. Login or sign up in order to post.
could you give a better example? your code? can I try to help.
– raduken