Best way to add comments in erb

前端 未结 7 2037
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 06:45

How do we add comments in erb files, if we do not want them to be generated into the html content?

7条回答
  •  没有蜡笔的小新
    2020-12-04 07:15

    I have a Windows setup, and this <%-# %> sequence is the only one that works for me:

    Example:

    <%-# This is a sample comment! %>
    

提交回复
热议问题