pixelearth
pixelearth

Reputation: 14630

Please tell me what is wrong with this HAML :sass filter syntax

-content_for :styles do
  :sass
    #image_column { 
      width: 200px;
      float: right;
      padding:15px;
      background-color: #eee;
    }

error: Invalid CSS after "200px": expected expression (e.g. 1px, bold), was ";"

Upvotes: 2

Views: 1235

Answers (2)

Teq1
Teq1

Reputation: 631

I had similar problem using SCOUT and naming files example.sass

Same error:

expected expression (e.g. 1px, bold), was ";")

Because i forgot change extension to .scss

Maybe this will be helpful.

Upvotes: 1

stef
stef

Reputation: 14268

You've written SCSS instead of SASS. Try this?

- content_for :styles do
  :sass
    #image_column 
      width: 200px
      float: right
      padding: 15px
      background-color: #eee

Upvotes: 4

Related Questions