How to write if-condition in Haml?

前端 未结 5 1422
长发绾君心
长发绾君心 2021-01-31 00:55

How to write if and if-else statements in Haml for a Ruby on Rails application?

5条回答
  •  礼貌的吻别
    2021-01-31 01:51

    Here are two links:

    1. https://html2haml.herokuapp.com/
    2. http://haml.info/tutorial.html

    The first one is a converter- you can enter html or erb snippets and you get haml!

提交回复
热议问题