Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sass for just HTML [closed]

Tags:

html

sass

I found SASS and sounds great that you can use variables, make code cleaner, etc... But, I see it's for Ruby on Rails.

Is there a way to make it work just with HTML as if it was CSS? If it's not possible is there something similar out there?

Thanks!

(btw I'll be using php)

like image 872
Daniel Avatar asked Sep 06 '12 21:09

Daniel


1 Answers

You can use SASS anywhere, providing that you've got ruby installed. It doesn't have to be a Ruby on Rails project, you just need to install the SASS gem.

See - http://sass-lang.com/tutorial.html

Alternatively there are other CSS pre-processors such as LESS and Stylus that are compiled using node.js rather than ruby.

LESS - http://lesscss.org/

Stylus - http://learnboost.github.com/stylus/

They each provide similar functionality, but with slightly varying syntax.

like image 126
tommarshall Avatar answered Sep 28 '22 02:09

tommarshall