Is there any way to insert a callback before/after a templates context is updated?
问题 I'm aware of Template.onRendered, however I have the need to destroy and setup some plugins that act on the dom when the actual context is updated. So saying I have content template, I'd need something similar to the following: Template.content.onBeforeChange(function () { $(".editor").editable("destroy"); }); Template.content.onAfterChange(function () { $(".editor").editable(); }); Is there any current way I can achieve this with the existing Template api? 回答1: You should be able to detect a