[haml] Mixing Javascript Template Syntax with HAML Syntax - Where to start?

2011-05-25 Thread viatropos
Hey,

I think it would be really great to be able to do this in HAML:

%script#section-template{:type = text/html}
  %section
%header
  %h3
%dl
  {{each faqs}}
%dt {{question}}
%dd {{answer}}

That's the jquery.tmpl syntax, but being able to create your own would
be awesome.  Is there a way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
Haml group.
To post to this group, send email to haml@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.



Re: [haml] Mixing Javascript Template Syntax with HAML Syntax - Where to start?

2011-05-25 Thread Marc Weber
Excerpts from viatropos's message of Wed May 25 16:57:04 +0200 2011:
 That's the jquery.tmpl syntax, but being able to create your own would
 be awesome.  Is there a way to do this?

Its open source - read it and start patching ..
But seriously: Why do you prefer
  %dt {{question}}
over
  %dt=question
or
  %dt!=question

?

Marc Weber

-- 
You received this message because you are subscribed to the Google Groups 
Haml group.
To post to this group, send email to haml@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.