This is my layout.html
code, and Im wondering how to augment it so that <div class="navbar"> ... </div>
only shows if the user is logged in via the {{>loginButtons}}
above them. Additionally, how do I route to the route triggered by one of the buttons, upon the user successfully logging in?
<body>
{{renderPage}}
</body>
<template name='layout'>
<div class="layout-buttons">
{{> loginButtons}}
</div>
<div class="navbar">
<div class='btn' id='left'><a class='button-text' href="{{pathFor 'home'}}">home</a></div>
<div class='btn' id='right'><a class='button-text' href="{{pathFor 'speakers'}}">myKaleo</a></div>
</div>
{{> yield}}
</template>