A modular approach to main-chain organometallic polymers.