Closed feugy closed 11 years ago
As seen directly with Loïc, we choose to add an new Cell kind, the TemplateCell, to distinguish case when:
Therefore, we modified CallbackCell to always use Backbone Model object, and add a subclass TemplateCell that render string templates from JSON serialized models.
When preparing the displayed model in callback-cell.js, it can be very handy to invoke the toJSON() method with a specific parameter.
This will allow developper to specifically format their model to fit the cell template: for example by getting embedded models attributes.