pug - what is this symbol != in node.js jade file? -


Do I know what code means in .jade file? Especially the signature "! ="?

body section. Contaner! = Body

thanks

Templates in template ! = means that the content displayed will be displayed

example:

 

> P = 'This code' + '& lt; Saved & gt;

returns

  & lt; P & gt; This code & amp; the lift; & Amp; Gt;! & Lt; / P & gt;   

And this example:

  p! = 'This code & lt; Strong & gt; No & lt; / Strong> escaped!'   

returns

  & lt; P & gt; This code & lt; Strong & gt; No & lt; / Strong> Survived and lt; / P & gt;   

You can see that only = was used in the first example, while the second example ! = . was used.

I hope this will help.

Comments

Popular posts from this blog

sonata admin - how to add ManyToOne property field in configureListfield in sonataAdmin -

c++ - 'std::string' has no member named 'get' list[i]=user.get; -

wpf - ControlTemplate with changes for every class -