How to escape the pipe symbol in jade?
Asked Answered
K

1

5

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?

Kumquat answered 29/10, 2015 at 14:2 Comment(2)
Have you tried using | directly?Budweis
no, but it's not too handy. I've found a first solution, though, see belowKumquat
K
8

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

Kumquat answered 29/10, 2015 at 14:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.