might be the same issue i had a while back.
I've found you cant do logic in mustache templates. Only static stuff works.