georgedyer's comments

georgedyer | 13 years ago | on: Rethinking Backbone.js View Rendering

I'm a big fan of adding a CoffeeKup template method right in the view. Then just call

    @$el.html coffeekup.render @template, @
in my render function. But I suppose that gives up keeping the html markup separate. For ui components, though, it just makes sense to me to keep the structure bundled with the functionality that way.
page 1