Sunday, October 10, 2010

Haml macro for clojure

http://github.com/mmikulicic/haml-macro

I made a small project which implements a clojure macro that reads a haml file and generates hiccup markup.

The parser is more or less compatible with the ruby haml parser, except the clojure expressions instead of ruby.

An example:

  %table.pane(cellspacing="0")
      %tr
        - (for [side-name ["left" "right" ]])
          %td(class="side-#{side-name}")
            %table

No comments:

Post a Comment