I have done compass create . and compass init rails whilst in my project directory. A few questions:
- I have placed my
.sassfiles inpublic/stylesheets. Is this the right place to put them? - When I run
compass watch, it does not automatically compile these.sassfiles. I have to manually specify the files:compass watch public/stylesheets/myfile.sassetc. How do I get this working automatically? - The files
ie.css,print.cssandscreen.csshave been placed instylesheets/compiled. How do I remove these without them reappeareing after compilation? - My own compiled
.sassfiles are compiled tocompiled/ts. Why are they intsand not incompiled?
Many thanks in advance
Edit: Worked it out:
- No, put them in
app/stylesheets/ - Works if you follow above
- Remove them from
app/stylesheets/ - Do first answer and they will be put in
compiled/
Compass uses a configuration file located in “config/compass.rb” which tells it where the important directories are. I think it knows to look in config/compass.rb because it searches a list of predefined directories for a compass.rb config file
Heres the config file I use for my Rails 3 projects
I generate this file by running the following command from the Rails root:
This is the only command that I use to run compass, and I run it when generating my project through a rails template https://github.com/sid137/rails-templates/blob/master/rails3.rb . I constructed this command by reading through the compass help, and looking online, as I wanted to customize all of my compass setup. Now, I can immediately begin my projects with
or