Hi,
I recently switched to using haml and sass for rails app and it rocks
\m/(^o^)\m/
I have one question though: becuase the CSS files are now generated
from sass I have excluded them from my subversion repo (mainly because
I want to be able to generate using a different :style depending on
the environment). This causes a problem in production as the css files
are never generated.

This documentation suggests that the should be generated "when the
Rails server starts" in production, but I couldn't find anything in
the code (after a cursory glance) where this is the case.

I ended up adding the following to my enviroment.rb

if RAILS_ENV == 'production'
  Sass::Plugin.options[:style] = :compact
  Sass::Plugin.update_stylesheets
end

Is this what you are expect to do or am I misreading the
documentation / code?

Cheers
Mike


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to