I'm trying to get used to Ember.js and Handlebars, but one problem is puzzling me. I'm probably just missing something, but has been on it for quite a while and could not find anything wrong.
I have the simple template bellow:
<header>
<h2><a href="#" class="link-box-title">{{project.pid}}-{{projectWindowTitle project}}</a></h2>
</header>
the first {{project.pid}} correctly outputs the project.pid value, and I wanted to pass the project object to the helper function bellow:
Handlebars.registerHelper('projectWindowTitle', function(proj) {
var info = proj.pid;
return info;
});
I'm overly simplifying the helper, but the result is always the same, the helper does't return anything:
<a href="#" class="link-box-title"><script id="metamorph-9-start" type="text/x-placeholder"></script>S2S<script id="metamorph-9-end" type="text/x-placeholder"></script>-</a>
What am I doing wrong?