#{extends 'main.html' /} #{set title:'Blog' /} Spacebook #{if loggedInUser} Logged in as ${loggedInUser.firstName} ${loggedInUser.lastName} #{/if} #{else} Log in to comment #{/else} ${user.firstName} ${user.lastName} 's Blog #{list items:user.posts, as:'post'} ${post.title} ${post.content} Comments: #{list items:post.comments, as:'comment'} ${comment.content} : ${comment.author.firstName} : on : ${comment.postedAt.format('dd MMM yy HH:mm:ss')} #{/list} #{if loggedInUser} Add Comment #{/if} #{/list}
${post.content} Comments: #{list items:post.comments, as:'comment'} ${comment.content} : ${comment.author.firstName} : on : ${comment.postedAt.format('dd MMM yy HH:mm:ss')} #{/list} #{if loggedInUser} Add Comment #{/if} #{/list}
${comment.content} : ${comment.author.firstName} : on : ${comment.postedAt.format('dd MMM yy HH:mm:ss')}