Here's the fiddle (sorry about the alerts) http://jsfiddle.net/PCcqJ/92/
var ractive = new Ractive({
template: '#templateOne',
partials: {
aPartial: '<div>Oh look, the partial is rendered!</div>'
}
});
function cb() {
alert('but now we unrender');
ractive.once('complete', function() {
alert('we rendered again, and now you can\'t see the partial content');
});
ractive.render('container');
}
ractive.render('container');
ractive.once('complete', function() {
alert('so we render the first time, and you can see the partial');
ractive.unrender().then(cb);
});
The partial here doesn't get re-rendered. Why is this? The partials are still in the partials object, and they have been unrendered, so what would prevent them from getting rendered again?
This fiddle renders, unrenders, and then re-renders, giving you an alert each time one of those happens.