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 

  1. = inserts html escaped characters. example:

    = javascript_include_tag("1", "2") 
  2. == inserts html without escaping. needed when have rendered html , need insert layout directly. example:

    == render 'footer' 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -