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

I have two resources nested:

{{#each categories _id}}
            {{#each recipes }}

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?