The fastest and most efficient way to convert ** haml ** and ** scss ** files? (Ruby on Windows)

I am ruby ​​/ haml / sass-beginner. I just installed ruby ​​and rails for windows, haml and sass (standalone and plugin for rails).

I know how to convert and haml file to html file (and vice versa):

haml index.haml > output.html

and how to convert fi scss to css file (and vice versa):

sass --watch style.scss:style.css

I save more time converting scss files because every time I save a scss file , the corresponding css file is automatically updated (I think we’ll assume the clock command )

but for haml files, I still do it manually ( haml index.haml > output.html).

I believe there are other ways to save time converting haml and scss files .

Any suggestions?

+3
source share
2 answers

When you set up Rails to work with Haml , then start your development server, Haml in your views is converted to HTML for you so there is no need to monitor the changes in your Haml separately.

, , Haml SCSS Rails , , , Haml SCSS :

http://github.com/jlong/serve

StaticMatic http://github.com/staticmatic/staticmatic

, Serve , , StaticMatic. , , (gem install serve) serve , Haml. http://localhost:4000. .

, Compass - Sass ( ). .

+3

, , , . staticmatic, , . SM , . , , .

0

Source: https://habr.com/ru/post/1751047/


All Articles