views:

149

answers:

1

I'm looking for a javascript 'port' of haml supporting the following features:

  1. Templates stored in files.
  2. JSON input.
  3. Supports "collections" [{Booking},{Booking},{Booking}] for iterated processing.

Essentially I'd like the functionality as sinatra_more's templates.

Does anyone know of something that fits the bill?

+1  A: 

The most up-to-date list of Haml implementations is on the Wikipedia page. According to that, the only Javascript implementation of Haml is haml-js. I'm not sure how well this satisfies your requirements, but it's worth checking out.

nex3
Thanks, but it doesn't – and I think I'd rather build the elements myself anyway.
arbales