I am following the tutorial on the simple posts app and make it to work(that you put in your name and message then submit, and meteor will update it to messages template). Now I want to extend it to have user sign in and messages will only show the posts by the current user. I got the sign in to work but not sure how to change the message code so that it work something like this:
{{#if currentuser}}
{{#each messages}}
{{posts by currentuser}}
{{/each}}
{{/if}}
How can I do that?