Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am fairly new to NGINX and Python is not my field at all. I am interested in introducing SASS support in my server. I don't want to use Ruby, but I found Python version. https://github.com/Kronuz/pyScss I was wondering how do I configure NGINX to execute .scss files using the script in question?

share|improve this question

1 Answer 1

SASS the style sheets; what you're asking for is to dynamically compile your .sass scripts into .css every time? I believe only Rails 3 does that, and even then it is surely cached after the first compilation run?

Compiling .sass into .css while your website visitor is waiting is bad style and the extra milliseconds will bore your visitor into loosing temper. Also, it is bottleneck and possible security risk.

So you should just pre-compile your .sass into regular .css and serve the .css as usual. You may even squeeze in some .css minification when you're at it, to get really great website performance.

Pre-compiling, see: http://ariejan.net/2010/09/28/precompile-sass-to-css-for-deployment-to-heroku/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.