{template Widget.prototype.tplRow(params)} ... {/} {template Widget.prototype.tpl(list)} <div class="foo"> {forEach list => el} {call this.tplRow(el)} {/} </div> {/}
Widget.prototype.appendRow = function (params) { this.find('.foo').append(this.tplRow(params)); }