Hi everybody, I found about HAML recently and think the concept is
pure genius!

Since I work mostly in Django, I decided to create a markup that is
similar to HAML.  I use it as a preprocessor for Django templates.
You can read more here:

http://groups.google.com/group/django-users/browse_thread/thread/7a8fbac4572d5c25#

I have an idea that I think might resonate with the HAML community.

First, let me say that HAML does a great job of providing indentation-
based syntax, and that is 80% of the pain when dealing with non-HAML
solutions.  I have made no innovations there; instead, I have just
ported the concept to Django use cases.

Where I differ from HAML is in HTML one-liners.

HAML puts the markup on the left:

    %strong{:class => "code", :id => "message"} Hello, World!

Showell Markup puts the markup on the right:

    Hello, World! | strong class="code" id="message

The idea is that Content is King!  Markup is just an afterthought.

And you can also chain markup as follows

  Hello, World | strong | span class="greeting"

Start with the content, and then apply markup from left to right, with
each new element surrounding the previous.  You get this result:

  <span class="greeting"><strong>Hello, World</strong></span>

I hope this makes sense.  Good luck bringing HAML to the masses!  It
is important stuff.

--

You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to h...@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.


Reply via email to