I have a meteorjs default layout file and i am routing to different pages using iron-route, What i am trying to do is not show navigation on the home page. I can do this by using two separate files but i want to do this with single file.
<template name="layout">
<head>
<title>
{{title}}
</title>
</head>
<body>
{{> navigation }}
<div class="nav_padding">
{{> yield}}
</div>
{{> footer}}
</body>
</template>
My route
Router.route('/', function(){
this.layout('homeLayout');
this.render('home', {
data:{title: 'some'}
});
});