The % was chosen because I wanted to be able to have plain tetxt lines

%title
  content

title
  content

Tags are explicit instead of implicit. And, I wanted to be able to
keep it more freeform.

Percent was chosen particularily because its SHIFT-5 which isn't too
hard to hit.

-hampton.

On 8/19/07, jc <[EMAIL PROTECTED]> wrote:
>
> I'm new to HAML and a big fan of it so far. Converted my rails app to
> HAML in about 2 hours and am really happy with the look of it.
> However, I searched the group to find any discussion on what the
> reasoning for using the % symbol for defining elements. I don't mind
> it, but it seems to be that there's a much cleaner and obvious way to
> formatting HAML.
>
> Using the wikipedia example: http://en.wikipedia.org/wiki/Haml
>
> Why not format it as the following?
>
> !!!
> html{ :xmlns => "http://www.w3.org/1999/xhtml";, :lang => "en",
> 'xml:lang' => "en" }
>   head
>     title BoBlog
>     meta{ 'http-equiv' => 'Content-Type', :content => 'text/html;
> charset=utf-8' }/
>     = stylesheet_link_tag 'main'
>   body
>     #header
>       h1 BoBlog
>       h2 Bob's Blog
>     #content
>       - @entries.each do |entry|
>         .entry
>           h3.title= entry.title
>           p.date= entry.posted.strftime("%A, %B %d, %Y")
>           p.body= entry.body
>     #footer
>       p
>         All content copyright (c) Bob
>
> Is that harder to parse? Is it more of an implementation or a style
> issue?
>
> I know this has probably been discussed before, but I'm just curious.
>
>
> >
>

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