I'm finally delving in to CSS Preprocessing, and trying to figure out the best route to go. My primary questions are:
- What is the value of using SASS or LESS over Php?
- If I were to use SASS or LESS, what's the best way to integrate values from the database?
Obviously using php to print styles in the header is a pretty bad idea. I was using php to create a stylesheet, and importing it as 'Content-Type: text/css'. It would then create the stylesheet that would be served as such and cached properly. I could use values from the database and work with the language I'm already adept with.
What advantages do SASS and LESS have over Php for creating/working with the stylesheets, and if I were using them, what is the best way to use values from the database? Would I need to use Php to grab the values from the database, basically continuing my methods above, only for that use, then using SASS, LESS, or another to work with the rest of the stylesheet?
Thank you very, very much for your help!