I have such jade snippt:
div.comment_list
- var clist = comment_list
each comment in clist
div.comment
div.comment_detail
span.commentator comment.commentator
span.comment_time comment.comment_time
span.comment_content comment.comment_content
The comment_list is what I pass into the jade template.
The problem is :
Each array element comment consists of a compound object, which, as you saw,
has commentator, comment_time, and comment_content.
However, jade could not recognize this fact, and it just output : comment.commentator comment.comment_time, comment.comment_content vebatim.
So how to tackle this ?