HAML - what does the “!=” operator do?

落花浮王杯 提交于 2019-12-02 08:45:05

Same as using = but doesn't sanitize the HTML

See http://haml.info/docs/yardoc/file.REFERENCE.html#unescaping_html

!= "Look  <up>!"

compiles to

Look <up>!

instead of

Look &ltg;up&gt;

That is used for Unescaping html

Read this HAML Documentation. It will give you all the answers you require. I just searched for HAML tags.

Do a CTRL+F for !=. != basically valuates Ruby code just like the equals would

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!