Straight-chain alkanes template the assembly of water-soluble nano-capsules.