Haml ... ending a line with a | (vertical bar)

I don’t know if HAML questions are appropriate here … but here goes.

How does on end line to be rendered with a vertical bar (|) ?

The vertical bar is a line continuation, aparently.

Doing | cause the vertical bar to be emitted … as well as the
backslash.

%p
= link_to ‘x’
|
= link_to ‘y’

it will be on the same line

On 9 July 2010 14:07, catz [email protected] wrote:

%p
= link_to ‘x’
|
= link_to ‘y’

it will be on the same line

I don’t think that is what the OP is trying to do. I think he is
trying to output a line of html which has | as the last character.

Colin

Ralph S. wrote:

I don’t know if HAML questions are appropriate here … but here goes.

How does on end line to be rendered with a vertical bar (|) ?

The vertical bar is a line continuation, aparently.

Doing | cause the vertical bar to be emitted … as well as the
backslash.

Have you tried outputting a string:

= “Some string ending with a vertical bar |”

Peace.

Phillip K. wrote:

Ralph S. wrote:

Have you tried outputting a string:

= “Some string ending with a vertical bar |”

Ok! That did the trick. Thank you!!!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs