You can use this:

%ul
  %li
    %a(href='#')
      Text


Or inline text:

%a(href='#') Text

On 9 dez, 11:35, JoeE <[email protected]> wrote:
> Hi, I am just checking that the following is the most succinct way of
> creating the following html:
>
> <ul>
>     <li>
>       <a href="#">
>           Text
>
> %ul
>   %li
>     %a{:href => '#'}
>        Text
>
> As a front-ender I am constantly creating links containg blank anchor
> href's.
> The haml ends up looking a lot 'bigger' (taking up a lot of lines
> particularly) in haml than it does in html. As written in html it
> would look like:
>
> <ul>
>          <li><a href="#">Text</a></li>
> </ul>
>
> Thanks

--

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