Code Shop

A bit of Ruby, a bit of JavaScript, a bit of love...

    • Edit
    • Delete
    • Autopost

    Sass 3 and Rails

    There is a new version of Sass released today. I was beginning to enjoy using SassScript but apparently there is a new syntax in town: Scss. It's pretty straightforward to convert sass to scss:

     
    sass-convert style.sass style.scss 
    

    Also here is a syntax file for Vim hounds.

    To compile a sass/scss file to css we need to run the following:

     
    sass --watch plutoz.scss 
    

    This will compile the scss/sass file as you work on it. Further, you can watch a whole directory for changes.
     
    sass --watch public/stylesheets 
    
    Tags » css rails sass
    • 10 May 2010
    • Views
    • 0 Comments
    • Permalink
    • Favorited 0 Times
    • Tweet

    Comments 0 Comments

    Leave a Comment

  • Abhi Yerra's Posterous

    An entity composed of reality and pseudo-reality. Enjoys coding, news, history, photography.

  • About Abhi Yerra

    An entity composed of reality and pseudo-reality. Enjoys coding, news, history, photography.

  • Subscribe

    Subscribe to this posterous
    Unsubscribe
    Follow this posterous RSS
  • Follow Me

             

Theme created for Posterous by Obox