The mockup pattern registry has good support for this. Just require the registry and call registry.scan() after replacing the segment:
require(['pat-registry'], function (registry) {
registry.scan($(rootElement));
});
where rootElement is the root of the section of the DOM that you are replacing.