I switched to HAML because I am an anal retentive freak about HTML
looking tidy and being properly indented. So far I been pretty happy.
I do have one slight problem when dealing with loops.
For example:
%dt PrePress
- for article in @articles_prepress
%dd=link_to h(article.title), article_path(article), :class =>
active_nav(article)
The above gives me the following output.
<dt>PrePress</dt>
<dd>
<a href="/articles/planning-and-design">Planning & Design</a>
</dd>
<dd>
<a href="/articles/color-management">Color Management</a>
</dd>
<dd>
<a href="/articles/file-submission">File Submission</a>
</dd>
<dd><a href="/articles/proofing">Proofing</a></dd>
<dd><a href="/articles/substrates">Substrates</a></dd>
<dd><a href="/articles/inks">Inks</a></dd>
<dd><a href="/articles/platemaking">Platemaking</a></dd>
</dl>
As you can see, shorter strings cause the dl and a tags to be laid out
on one line. I actually prefer this, but HAML doesn't comply on longer
titles and just splits them up. Is there a workaround for this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---