I am using Symfony and MtHaml - https://github.com/arnaud-lb/MtHaml. I would use a combination of twital and haml:

```haml
%ul(t:if="users")
  %li(t:attr="..." t:for="user in users")= user.name
```