That also works for me in the same sorts of scenarios.

$ haml -s
%p
   = 1 + 2
   |
   = 4 / 8
   |
   = "whatever"
^D
<p>
   3
   |
   0
   |
   whatever
</p>

Must be an issue with the PHP implementation.

Rhett

On Jun 8, 2009, at 4:57 PM, rocket wrote:

>
> I'm trying to use it in between snips of executable code. I'm actually
> using it in PHP.
>
> = $link('Home');
> |
> = $link('Register');
> |
> = $link('Login');
>
> I'm trying to achieve the basic:
>
> Home | Register | Login
>
>
> On Jun 8, 5:28 pm, Rhett Sutphin <[email protected]> wrote:
>> Hi,
>>
>> On Jun 8, 2009, at 4:09 PM, rocket wrote:
>>
>>> Ok this has been bothering me and I can't seem to figure it out. I
>>> want to use the pipeline character, "|" but I can't figure out how  
>>> to
>>> use it. I tried to escape it with \ but it doesn't escape. Any tips?
>>
>> Where are you trying to use it?  This works for me:
>>
>> $ haml -v
>> Haml 2.0.9
>>
>> $ haml -s
>> #foo
>>    Some text with a | in it
>> #bar
>> ^D
>> <div id='foo'>
>>    Some text with a | in it
>> </div>
>> <div id='bar'></div>
>>
>> It also works if the '|' is at the end of the line.
>>
>> Rhett
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to