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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -