ruby on rails - Difference between single and double equals in Slim (= vs ==) -
in slim, when should use double equals sign?
for example:
== yield == render 'partial' == stylesheet_link_tag "application", media: "all" title == full_title(yield(:title)) - flash.each |key, value| == value
or
= yield = render 'partial' = stylesheet_link_tag "application", media: "all" title == full_title(yield(:title)) - flash.each |key, value| = value
=
inserts html escaped characters. example:= javascript_include_tag("1", "2")
==
inserts html without escaping. needed when have rendered html , need insert layout directly. example:== render 'footer'
Comments
Post a Comment