Don't try to use asynchronous code in a "synchronous way".
Maybe, it will be a good solution for you:
templateHelpers: {
currentUserCan: function(action) { return currentUser.can(action); }
}
- here we return promise from the function, since we want to react on asynchronous action completion.
<div class="large-8 columns">
<p><% $.when(currentUserCan('some_action')).done(function(permission) {
if(permission)
console.log("can");
else
console.log('can not');
}) %></p>
<p>Last Status:<%= date %></p>
</div>
- here we use promise right from the template.