I'll give it a try; thanks.. -r
On Nov 6, 3:48 pm, Hampton <[EMAIL PROTECTED]> wrote: > So, part of the philosophy of Haml is that you shouldn't ever have > more code in a single line than looks comfortable. In the > best-formatted Haml document, every line (\n) expresses a document > element. > > I agree with your instincts, as I always line up my ruby to an almost > obsessive degree. But, I disagree that this is needed in Haml. Both of > your examples are bits of code that I believe should never be written. > > First off, inline style is a major no-no in my book. May I > suggest...http://pastie.caboo.se/114795 > > These practices are not just some high-tower belief that I pulled out > of my ass. These design decisions are very particularly made because > in the long run they will make you much more productive. They keep > your concerns-separate and your code DRY. > > Just give it a whirl for a while. I promise, CSS + seperated-ruby-bits > will be a huge boon to your productivity in the long-run. > > -hampton. > > On Nov 6, 2007 1:01 PM, Rich Morin <[EMAIL PROTECTED]> wrote: > > > > > My motivation in using HAML is to have code that is easy to read, > > prints nicely, etc. If I want awkward syntax, I know where to find > > it (:-). I'm cool with putting Ruby methods in helpers, but what > > about tidying up long HAML attributes, as: > > > %a{ :target => '_new', | > > :href => 'https://my.foo.net/p/ops/bar_webcam'+ | > > "[EMAIL PROTECTED]" } View Bar | > > -# > > View Bar > > > and > > > %div{ :style => 'border: 1px solid #aaa; | > > padding: 10px; | > > background: #eee;' } | > > -# > > > Long lines are harder to read. Please add some syntax for those > > of us that like to keep things short, nicely lined up, etc. > > > On Aug 14, 9:26 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > > > Yep. The syntax is intentionally awkward. It's part of our effort to > > > discourage people from using pipes at all. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
