to learn meteor, I'm following Sacha Greif's book 'Discovering Meteor'. The current source code is reflected here-> https://github.com/stopachka/meteor-hackernews
Right now, I'm trying to add a 'discuss' link to the post_item, which is supposed to render the single post_item.
<template name="postItem">
<div class="post">
<div class="post-content">
<h3><a href="{{url}}">{{title}}</a><span>{{domain}}</span></h3>
</div>
<a href="{{postPagePath title}}" class="discuss btn">Discuss</a>
</div>
</template>
The router looks like so ->
Meteor.Router.add
'/': 'postsList'
'/posts/:_id':
to: 'postPage'
and: (id) ->
Session.set('currentPostId', id)
Currently, If I type in to the browser
localhost:3000/posts/foobarid
It renders the corresponding post
But when i add the {{postPagePath title}}, the discuss button does not even show the href property. I'm assuming it's because it's not rendering anything.
Super new to Meteor here, any guidance greatly appreciated