Luca Reghellin
Luca Reghellin

Reputation: 8113

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?

Upvotes: 5

Views: 1627

Answers (1)

Luca Reghellin
Luca Reghellin

Reputation: 8113

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

Upvotes: 8

Related Questions