Ractivejs Events On Tripple Mustache
I have a paging function since it's a little bit tricky to do it in the templates. The problem is that if I place it like this: {{ paging( rows, limit, offset ) }}  It will obvious
Solution 1:
Use a partial if you want to add dynamic templating:
data: {
    foo: 'foo',
    paging: function(x){
        var template = '<li on-click="clicked()">' + x + '</li>';
        if (!this.partials.paging) {
            this.partials.paging = template;
        }
        else {
            this.resetPartial('paging', template);
        }
        return'paging';
    }
},
Post a Comment for "Ractivejs Events On Tripple Mustache"