Is it possible to import a whole directory in sass using @import?

I am modularizing my stylesheets with SASS partials like so: @import partials/header @import partials/viewport @import partials/footer @import partials/forms @import partials/list_container @import partials/info_container @import partials/notifications @import partials/queues is there a way to include the whole partials directory(it’s a directory full of SASS-partials) like @import compass or something? 13 Answers 13

optional local variables in rails partial templates: how do I get out of the (defined? foo) mess?

I’ve been a bad kid and used the following syntax in my partial templates to set default values for local variables if a value wasn’t explicitly defined in the :locals hash when rendering the partial — <% foo = default_value unless (defined? foo) %> This seemed to work fine until recently, when (for no reason … Read more