Access Template.parentData(0)._id in a server-side rendered HTML

I have two resources nested:

{{#each categories _id}}
            {{#each recipes }}
                <h5>{{category.nameIt}}</h5>
                <h3>{{nameIt}}</h3>
            {{/each}}
{{/each}}

The problem is that im in the server-side of meteor so when I try to define recipes like this:

recipes: function(){
        var cId = Template.parentData(0)._id
        return Recipe.find({"categoryId": cId, "isActive": true});
       }

It doesn’t work. Do you have any other solution?