Help with handlebars

Hello,
I have researched a lot on the Internet and tried myself but found nothing. I must also say that I am new to Ember.js. The more I am happy if someone can help me.
It’s about the bottom code to display a div under the navbar. This works great. However, I only want it to be displayed when

  • the user is logged in
  • only on the home page, so URL “/”
<script type="text/x-handlebars" data-template-name="/connectors/below-site-header/custom-homepage">
  <div style="height: 200px; width: 200px;background: red"></div>
</script>

You can take a look at how meta banner works, it supports conditional login state and path.

3 Likes

Thank you, that helped me a lot

1 Like