How do I get Haml to work with Rails?

后端 未结 10 1140
一向
一向 2020-12-07 13:15

I am trying to get Haml to work with my Ruby on Rails project. I am new to Ruby on Rails and I really like it. However, when I attempt to add an aplication.html.haml

10条回答
  •  不知归路
    2020-12-07 13:27

    Before trying to use haml in your rails application, you can verify that the command line executable is installed correctly:

    $ haml
    %p 
      %span Hello World!
    

    Then press CTRL-D and you should see:

    Hello World!

提交回复
热议问题