I have a CompositeView with a list of ItemViews. The same collection is rendered for both states, when a user is logged in, and when a user is logged out.
The ItemView looks roughly like:
<div class="title">
{{ title }}
</div>
{{#if MA.currentUser }}
Add Review
{{/if}}
With the JavaScript:
MA.Views.Items.Movie = Backbone.Marionette.ItemView.extend({ template: 'items/movie', className: 'movie' });
However, this does not seem to display the expected 'Add Review'.
Any suggestions what could be done in this situation?