私は index: {{#eachIndex}} でそれぞれを実装しようとしていますが、私が見つけたすべてのコード例は非推奨のようです:
UI.registerHelper('eachIndex', function () {
var withIndex = _.map(this, function(x, i) {
x.index = i;
return x;
});
return UI.Each(function() {
return withIndex;
}, UI.block(null), UI.block(null));
});
UI.block は未定義です。
テンプレートにパラメーターを渡そうとする別のスニペットがありますが、それも失敗するため、完全に間違っていると思います。
UI.registerHelper('clearfix', function () {
return UI.With((function() {
return {attributes:{class:this.col}};
}), Template._clearfix);
});