Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to escape the pipe symbol in jade?

In jade the pipe symbol (|) is used for plain text output. What if I want to write it in page? How can I escape it?

like image 618
Luca Reghellin Avatar asked Oct 29 '15 14:10

Luca Reghellin


1 Answers

I've just found a possible solution: use the pipe itself to escape the pipe instruction:

|| hello

will output

| hello

and that's true for about any reserved symbol: us the pipe in front so it will be treated as plain text

like image 179
Luca Reghellin Avatar answered Nov 20 '22 12:11

Luca Reghellin