You shouldn't need the pipe for this.

%a{:href => '#'}
   %img{:src => 'foo.gif'}
   Hi, I want something like this



On 22-Aug-07, at 2:20 PM, jallen wrote:
> Hi,
>
> I'm new to haml and am learning how to use the pipe directive. I
> authored this:
>
> %a{:href => '#'}|
>   %img{:src => 'foo.gif'}Hi, I want something like this:
>
> Expecting something this:
>
> <a href="#"><img src="foo.gif"></a>
>
> But instead, I am getting this error:
>
> "Illegal Nesting: Nesting within a tag that already has content is
> illegal."
>
> Is there no way to get haml to emit nested elements this way? Btw,
> thanks, haml is fun.
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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